Struct yup_oauth2::authenticator::Authenticator [−][src]
pub struct Authenticator<C> { /* fields omitted */ }
Expand description
Authenticator is responsible for fetching tokens, handling refreshing tokens, and optionally persisting tokens to disk.
Implementations
Return the current token for the provided scopes.
pub async fn force_refreshed_token<'a, T>(
&'a self,
scopes: &'a [T]
) -> Result<AccessToken, Error> where
T: AsRef<str>,
pub async fn force_refreshed_token<'a, T>(
&'a self,
scopes: &'a [T]
) -> Result<AccessToken, Error> where
T: AsRef<str>,
Return a token for the provided scopes, but don’t reuse cached tokens. Instead, always fetch a new token from the OAuth server.
Trait Implementations
Auto Trait Implementations
impl<C> !RefUnwindSafe for Authenticator<C>
impl<C> Send for Authenticator<C> where
C: Send + Sync,
impl<C> Sync for Authenticator<C> where
C: Send + Sync,
impl<C> Unpin for Authenticator<C>
impl<C> !UnwindSafe for Authenticator<C>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more