fix: improve session management and UI highlights

This commit is contained in:
Usman Baig
2026-03-01 13:53:54 +01:00
parent ac1ed58127
commit b3a303d6df
7 changed files with 44 additions and 64 deletions

View File

@@ -174,6 +174,8 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
useSessionSync({
onLogout: () => {
localStorage.removeItem('user')
localStorage.removeItem('ciphera_token_refreshed_at')
localStorage.removeItem('ciphera_last_activity')
window.location.href = '/'
},
onLogin: (userData) => {