fix: resolve header logout state synchronization issue
All checks were successful
Staging Build / build (push) Successful in 2m39s
All checks were successful
Staging Build / build (push) Successful in 2m39s
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user