Function auth

Source
async fn auth(
    authenticator: &Authenticator,
    creds: Option<Credentials>,
    allowed_roles: AllowedRoles,
) -> Result<AuthedUser, AuthError>