fix: resolve header logout state synchronization issue
All checks were successful
Staging Build / build (push) Successful in 2m39s

This commit is contained in:
DanielS
2026-06-24 13:31:30 +02:00
parent fe1d15090a
commit 9fbab07e1a
2 changed files with 15 additions and 2 deletions

View File

@@ -30,7 +30,11 @@ export function AdminLogoutButton() {
} catch (error) {
console.error("Fehler beim Abmelden:", error);
}
await supabase.auth.signOut();
try {
await supabase.auth.signOut();
} catch (e) {
console.error("Fehler beim Client-Signout:", e);
}
router.push("/");
router.refresh();
};