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§
Sourcefn ensure_database_user_exists(&self, auth_: BearerToken) -> Result<(), Error>
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.