Invalidate user cache

This commit is contained in:
MartinBraquet
2026-03-07 11:17:29 +01:00
parent 67e95be2d4
commit 3ddf81d935

View File

@@ -21,7 +21,7 @@ import {isOnboardingFlag} from 'web/lib/util/signup'
// Either we haven't looked up the logged-in user yet (undefined), or we know
// the user is not logged in (null), or we know the user is logged in.
export type AuthUser = undefined | null | (UserAndPrivateUser & {authLoaded: boolean})
const CACHED_USER_KEY = 'CACHED_USER_KEY_V2'
const CACHED_USER_KEY = 'CACHED_USER_KEY_V3'
export const ensureDeviceToken = () => {
let deviceToken = safeLocalStorage?.getItem('device-token')