Skip to main content

PhoneOtpVerifier

Trait PhoneOtpVerifier 

Source
pub trait PhoneOtpVerifier: Send + Sync {
    // Required method
    fn verify<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        delivery: &'life1 PhoneOtpDelivery,
        context: &'life2 CallbackContext,
    ) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

A provider that verifies its own phone challenge. Its verification result replaces local verification, including expiry, replay and attempt policy.

Required Methods§

Source

fn verify<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, delivery: &'life1 PhoneOtpDelivery, context: &'life2 CallbackContext, ) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§