Skip to main content

LastLoginMethodResolver

Trait LastLoginMethodResolver 

Source
pub trait LastLoginMethodResolver<S: AuthSchema>: Send + Sync {
    // Required method
    fn resolve(
        &self,
        context: &EndpointContext<'_, S>,
    ) -> AuthResult<Option<String>>;
}
Expand description

Override the detected method. None uses the default resolver; an empty string suppresses tracking.

Required Methods§

Source

fn resolve( &self, context: &EndpointContext<'_, S>, ) -> AuthResult<Option<String>>

Resolve the method from the active endpoint, runtime, and transaction.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§