Skip to main content

OAuthTokenRefresh

Trait OAuthTokenRefresh 

Source
pub trait OAuthTokenRefresh: Sized {
    // Required method
    fn refresh(
        &self,
        tokens: &OAuthTokens,
    ) -> impl Future<Output = Result<OAuthTokens, StorageError>> + Send;
}
Expand description

Crate-to-crate operations for coven’s owners; not re-exported by the app API.

Required Methods§

Source

fn refresh( &self, tokens: &OAuthTokens, ) -> impl Future<Output = Result<OAuthTokens, StorageError>> + Send

One refresh of tokens after the provider rejected them (§20.2), for its custody to commit before any connection uses it. Tokens without a refresh token need a new sign-in; a missing client is the app’s configuration. Token-endpoint failures keep their classification.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§