pub trait TokenProvider: Send + Sync + Debug {
    fn provide_access_token<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Option<Credentials>, ClientError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A provider for access credentials (mostly access tokens).

Required Methods

Implementations on Foreign Types

Implementors