feat(auth): harden Authentik and guest capability boundaries

This commit is contained in:
Jens
2026-08-30 05:59:49 +02:00
parent b93d926b94
commit 96f90373dc
15 changed files with 928 additions and 8 deletions
+2
View File
@@ -10,6 +10,7 @@ const signedOutSession: AuthSession = {
expires_at: null,
role: null,
guest_access_enabled: false,
authentik_enabled: false,
guest_project_id: null,
}
@@ -43,6 +44,7 @@ export function useOperatorSession() {
setSession((current) => ({
...signedOutSession,
guest_access_enabled: current?.guest_access_enabled ?? false,
authentik_enabled: current?.authentik_enabled ?? false,
}))
setSessionError('Uw sessie is verlopen. Meld u opnieuw aan.')
}