feat: fix logout button, inactivity tracker, and concurrent session termination
All checks were successful
Staging Build / build (push) Successful in 2m16s

This commit is contained in:
DanielS
2026-06-24 00:15:59 +02:00
parent 9878cdb2a2
commit 62e3c7804a
6 changed files with 173 additions and 5 deletions

View File

@@ -25,6 +25,9 @@ export async function signIn(email: string, password: string) {
await supabase.auth.signOut()
throw new Error("Zugriff verweigert. Nur registrierte Partner dürfen sich anmelden.")
}
// Andere aktive Sitzungen beenden
await supabase.auth.signOut({ scope: 'others' })
}
return { success: true }