Workers P3: Nachträge aus der P2-Endprüfung (Kennungen, JWT-Sperre, Abmelden, Bestätigung)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c6c022678f
commit
777d5272bf
6 files changed
+279
-19
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
} from '../lib/appwrite'
|
||||
import { createMfaApi, isMoreFactorsError, maskEmail, mfaErrorMessage } from '../lib/mfa'
|
||||
import { isStaffAccount, NO_STAFF_ACCESS } from '../lib/staffAccess'
|
||||
import { resetWorkersJwt } from '../lib/workersClient'
|
||||
|
||||
const AuthContext = createContext()
|
||||
const mfa = createMfaApi(client)
|
||||
@@ -238,6 +239,7 @@ export function AuthProvider({ children }) {
|
||||
console.error('Logout error:', error)
|
||||
} finally {
|
||||
clearAllLocalAppwriteSessions()
|
||||
resetWorkersJwt() // JWT und Sperre der Hustler-Seite gehören zur beendeten Sitzung
|
||||
setUser(null)
|
||||
setEmployee(null)
|
||||
setMfaPending(null)
|
||||
|
||||
Reference in new issue
Block a user