pub struct Session {
pub provider_token: Option<String>,
pub provider_refresh_token: Option<String>,
pub access_token: String,
pub token_type: String,
pub expires_in: i64,
pub expires_at: u64,
pub refresh_token: String,
pub user: User,
}
Fields§
§provider_token: Option<String>
The oauth provider token. If present, this can be used to make external API requests to the oauth provider used.
provider_refresh_token: Option<String>
The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider’s API.
Not all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider’s documentation for information on how to obtain the provider refresh token.
access_token: String
The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value.
token_type: String
§expires_in: i64
The number of seconds until the token expires (since it was issued). Returned when a login is confirmed.
expires_at: u64
A timestamp of when the token will expire. Returned when a login is confirmed.
refresh_token: String
A one-time used refresh token that never expires.
user: User