This commit is contained in:
2026-03-31 10:23:49 +05:30
parent f488400c6d
commit cfecfa5116
8 changed files with 21 additions and 23 deletions

View File

@@ -37,6 +37,7 @@ type MongoUser = {
displayName?: string
photoURL?: string
theme?: string
tutorial?: boolean
}
type AuthContextValue = {
@@ -211,8 +212,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
// Clear secret key from memory
setSecretKey(null)
setMongoUser(null)
// Reset onboarding so tour shows again on next login
localStorage.removeItem('gj-onboarding-done')
// Clear pending tour step (session state)
localStorage.removeItem('gj-tour-pending-step')
// Keep device key and encrypted key for next login
// Do NOT clear localStorage or IndexedDB