-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Summary:
- Inconsistent token key usage between Redux and localStorage:
- src/redux/slices/auth.ts → getLocalStorage('auth')
- src/tools/auth.ts → ACCESS_TOKEN_KEY = 'auth'
- src/App.tsx → getLocalStorage('auth')
- If Redux update fails after token exchange (e.g., Google login), user appears logged-in locally but Redux state disagrees.
- No error handling if localStorage write fails.
Impact:
Leads to ghost sessions and UI desync.
Suggested Fix:
Centralize token handling (single key constant + wrapper utility) and synchronize Redux + localStorage updates transactionally.
dmitrizagidulin
Metadata
Metadata
Assignees
Labels
No labels