Skip to content

struct

OAuthToken

pub struct OAuthToken {
    pub access_token: String,
    pub expires_in: f64,
    pub scope: String,
    pub state: String,
}

An OAuth token from the redirect's fragment.

Fields

access_token

pub access_token: String

The token to send as Authorization: Bearer ….

expires_in

pub expires_in: f64

Seconds until it expires.

scope

pub scope: String

The scopes granted, separated by spaces.

state

pub state: String

The state sent with the request, to check against.

Trait implementations