fix: redirect to home page on sign out
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user