fix(auth): defer guest login until chat entry

This commit is contained in:
2026-07-07 14:11:36 +08:00
parent fd96cdb3d6
commit 2aaf60a497
8 changed files with 84 additions and 29 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export function AuthProvider({ children }: AuthProviderProps) {
username: state.context.username,
confirmPassword: state.context.confirmPassword,
// isLoading 覆盖邮箱登录 / 邮箱注册 / OAuth 跳转(NextAuth 重定向期间)/
// OAuth 回调后端 sync / 自动游客登录
// OAuth 回调后端 sync / 显式游客登录
isLoading:
state.matches("loadingEmailLogin") ||
state.matches("loadingEmailRegister") ||