AsyncTokenProvider

Trait AsyncTokenProvider 

Source
pub trait AsyncTokenProvider: Send + Sync {
    // Required method
    fn get_token<'life0, 'async_trait>(
        &'life0 self,
        force_refresh: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, TokenError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Shared trait used by modules that need to retrieve auth/app-check tokens asynchronously.

Required Methods§

Source

fn get_token<'life0, 'async_trait>( &'life0 self, force_refresh: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, TokenError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl AsyncTokenProvider for Arc<AppCheck>

Source§

fn get_token<'life0, 'async_trait>( &'life0 self, force_refresh: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, TokenError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl AsyncTokenProvider for Arc<Auth>

Source§

fn get_token<'life0, 'async_trait>( &'life0 self, force_refresh: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, TokenError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§