fix: redirect to home page on sign out

This commit is contained in:
DanielS
2026-06-24 01:40:17 +02:00
parent 4a17ea378e
commit 934879e5cf
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,8 @@ export function LogoutButton() {
const logout = async () => {
await signOut();
router.push("/auth/login");
router.push("/");
router.refresh();
};
return <Button onClick={logout}>Logout</Button>;