diff options
| author | 2025-01-29 23:16:45 -0600 | |
|---|---|---|
| committer | 2025-01-29 23:16:45 -0600 | |
| commit | 35235e4a7ac90f4cdcdf753befb1aff516320eb4 (patch) | |
| tree | af53499a61bb41a8705073d30acdf8dbde2c120a /src/auth/types.rs | |
| parent | do device code auth (diff) | |
wip: use an actual oauth library
Diffstat (limited to 'src/auth/types.rs')
| -rw-r--r-- | src/auth/types.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/auth/types.rs b/src/auth/types.rs index 8889b63..79cf84f 100644 --- a/src/auth/types.rs +++ b/src/auth/types.rs @@ -1,5 +1,6 @@ use chrono::{DateTime, Utc};
use multimap::MultiMap;
+use oauth2::RefreshToken;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
@@ -31,9 +32,15 @@ pub struct MsaUser { #[serde(skip_serializing_if = "Option::is_none")]
pub profile: Option<UserProfile>,
pub xuid: Uuid,
+
+ pub(super) client_id: oauth2::ClientId,
+
+ #[serde(default, skip_serializing_if = "std::ops::Not::not")]
+ pub(super) is_azure_client_id: bool,
+
pub(super) auth_token: Option<Token>,
pub(super) xbl_token: Option<Token>,
- pub(super) refresh_token: Option<Token>
+ pub(super) refresh_token: Option<RefreshToken>
}
#[derive(Debug, Serialize, Deserialize)]
|
