fix(auth): use uuid device id outside production
This commit is contained in:
@@ -238,7 +238,8 @@ export const guestLoginActor = fromPromise<LoginStatus, void>(async () => {
|
||||
// ========== 启动 / 恢复时检查登录态 actor(只查不创) ==========
|
||||
// 由 <AuthStatusChecker /> 在 mount 时派发(一次性)。
|
||||
// 流程(纯只读):
|
||||
// 1. deviceIdentifier.getDeviceId() —— 无则通过 fingerprintjs 生成 + 落盘
|
||||
// 1. deviceIdentifier.getDeviceId() —— 无则生成 + 落盘
|
||||
// (生产环境使用 fingerprintjs;非生产环境使用本地 UUID)
|
||||
// (给后续 OAuth/email 登录准备 deviceId,不在 splash 首次访问就 auto-create 游客)
|
||||
// 2. AuthStorage.getLoginToken() —— 有 → "email"
|
||||
// 3. AuthStorage.getFacebookId() —— 有 → facebookIdLogin → "facebook"
|
||||
|
||||
Reference in New Issue
Block a user