From ef77709ae808d0e2bc920a4645276c755911b7ce Mon Sep 17 00:00:00 2001 From: chenhang Date: Thu, 9 Jul 2026 16:02:27 +0800 Subject: [PATCH] chore --- src/stores/auth/auth-actors.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/stores/auth/auth-actors.ts b/src/stores/auth/auth-actors.ts index a4475769..b8f77de4 100644 --- a/src/stores/auth/auth-actors.ts +++ b/src/stores/auth/auth-actors.ts @@ -232,17 +232,6 @@ export const guestLoginActor = fromPromise(async () => { }); // ========== 启动 / 恢复时检查登录态 actor(只查不创) ========== -// 由 在 mount 时派发(一次性)。 -// 流程(纯只读): -// 1. deviceIdentifier.getDeviceId() —— 无则生成 + 落盘 -// (生产环境使用 fingerprintjs;非生产环境使用本地 UUID) -// (给后续 OAuth/email 登录准备 deviceId,不在 splash 首次访问就 auto-create 游客) -// 2. AuthStorage loginToken + refreshToken -// —— 两者都有 → 读取 loginProvider,缺省回退 "email" -// —— 任一缺失 → 不算业务登录态 -// 3. AuthStorage.getFacebookId() —— 有 → facebookIdLogin → "facebook" -// 4. AuthStorage.getGuestToken() —— 有 → "guest" -// 5. 都没有 → "notLoggedIn"(让用户显式选 OAuth / Email / Guest 入口) export const checkAuthStatusActor = fromPromise(async () => { // 1. 拿 deviceId(不用于 auto-guest-login,仅供后续登录用)