pub trait ClientApplication: DynClone + Send + Sync {
    // Required methods
    fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>;
    fn get_token_silent_async<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn with_force_token_refresh(
        &mut self,
        force_token_refresh: ForceTokenRefresh
    );

    // Provided method
    fn get_decoded_jwt(&self) -> Option<&TokenData<Claims>> { ... }
}

Required Methods§

source

fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>

source

fn get_token_silent_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

source

fn with_force_token_refresh(&mut self, force_token_refresh: ForceTokenRefresh)

Provided Methods§

source

fn get_decoded_jwt(&self) -> Option<&TokenData<Claims>>

Implementations on Foreign Types§

source§

impl ClientApplication for String

source§

fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>

source§

fn get_token_silent_async<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, String: 'async_trait,

source§

fn with_force_token_refresh(&mut self, _force_token_refresh: ForceTokenRefresh)

Implementors§