diff options
| author | 2026-01-13 19:20:24 +0800 | |
|---|---|---|
| committer | 2026-01-13 19:20:24 +0800 | |
| commit | 203c24d2da82841cae0b5c29708d07ebce1efb85 (patch) | |
| tree | 20bc2c5acfcbcbd997b274d6dc58dfaf4b724273 /src-tauri/src/core | |
| parent | c4bd0ad4104123046c7637b75b0a5fd64941a296 (diff) | |
| download | DropOut-203c24d2da82841cae0b5c29708d07ebce1efb85.tar.gz DropOut-203c24d2da82841cae0b5c29708d07ebce1efb85.zip | |
refactor: clean up comments and improve code formatting in authentication and login UI
Diffstat (limited to 'src-tauri/src/core')
| -rw-r--r-- | src-tauri/src/core/auth.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src-tauri/src/core/auth.rs b/src-tauri/src/core/auth.rs index ede8f5a..99481d5 100644 --- a/src-tauri/src/core/auth.rs +++ b/src-tauri/src/core/auth.rs @@ -2,7 +2,6 @@ use serde::{Deserialize, Serialize}; use std::sync::Mutex; use uuid::Uuid; -// --- Account Types --- // Helper to create a client with a custom User-Agent // This is critical because Microsoft's WAF often blocks requests without a valid UA @@ -58,8 +57,6 @@ pub struct MicrosoftAccount { pub expires_at: i64, } -// --- State --- - pub struct AccountState { pub active_account: Mutex<Option<Account>>, } @@ -72,15 +69,11 @@ impl AccountState { } } -// --- Offline Utils --- - pub fn generate_offline_uuid(username: &str) -> String { let namespace = Uuid::NAMESPACE_OID; Uuid::new_v3(&namespace, username.as_bytes()).to_string() } -// --- Microsoft Auth Logic --- - // Constants const CLIENT_ID: &str = "fe165602-5410-4441-92f7-326e10a7cb82"; const SCOPE: &str = "XboxLive.Signin offline_access openid profile email"; |