InternalUserCreationService

Trait InternalUserCreationService 

Source
pub trait InternalUserCreationService {
    // Required method
    fn ensure_database_user_exists(
        &self,
        auth_: BearerToken,
    ) -> Result<(), Error>;
}
Expand description

Internal service responsible for handling creation of new users.

Required Methods§

Source

fn ensure_database_user_exists(&self, auth_: BearerToken) -> Result<(), Error>

Ensures that the user corresponding to the auth header provided exists in the database. Will do nothing if the user already exists.

Implementors§