Skip to content

Commit

Permalink
fix: logout url
Browse files Browse the repository at this point in the history
  • Loading branch information
amjed-ali-k committed Oct 14, 2023
1 parent 7038665 commit 2118d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/auth/LogOut.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useLogout = () => {
const logout = async () => {
try {
await hanko?.user.logout();
router.push("/login");
router.push("/auth");
router.refresh();
return;
} catch (error) {
Expand Down

0 comments on commit 2118d88

Please sign in to comment.