fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user