Trait inth_oauth2_async::token::Token[][src]

pub trait Token<L: Lifetime>: FromResponse {
    fn access_token(&self) -> &str;
fn scope(&self) -> Option<&str>;
fn id_token(&self) -> Option<&str>;
fn lifetime(&self) -> &L; }
Expand description

OAuth 2.0 tokens.

See RFC 6749, section 5.

Required methods

Returns the access token.

See RF C6749, section 1.4.

Returns the scope, if available.

Returns the ID token, if available. Returned by Google providers in some cases.

Returns the token lifetime.

Implementors