From 203c24d2da82841cae0b5c29708d07ebce1efb85 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Tue, 13 Jan 2026 19:20:24 +0800 Subject: refactor: clean up comments and improve code formatting in authentication and login UI --- src-tauri/src/core/auth.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src-tauri/src') 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>, } @@ -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"; -- cgit v1.2.3-70-g09d2