summaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/core/auth.rs7
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";