Trait inth_oauth2_async::token::Token
source · pub trait Token<L: Lifetime>: FromResponse {
// Required methods
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§
sourcefn access_token(&self) -> &str
fn access_token(&self) -> &str
Returns the access token.
Object Safety§
This trait is not object safe.