mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
Expose TokenInfo fields publically
For easier debugging, and for implementing custom storage solutions which might not use serde.
This commit is contained in:
@@ -58,11 +58,11 @@ impl From<TokenInfo> for AccessToken {
|
||||
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
|
||||
pub struct TokenInfo {
|
||||
/// used when authenticating calls to oauth2 enabled services.
|
||||
pub(crate) access_token: String,
|
||||
pub access_token: String,
|
||||
/// used to refresh an expired access_token.
|
||||
pub(crate) refresh_token: Option<String>,
|
||||
pub refresh_token: Option<String>,
|
||||
/// The time when the token expires.
|
||||
pub(crate) expires_at: Option<DateTime<Utc>>,
|
||||
pub expires_at: Option<DateTime<Utc>>,
|
||||
}
|
||||
|
||||
impl TokenInfo {
|
||||
|
||||
Reference in New Issue
Block a user