Skip to content

Commit

Permalink
fix(fe): redirect to home when user logged out (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
youznn authored Aug 28, 2024
1 parent 198502d commit 8337b68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/components/auth/HeaderAuthPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function HeaderAuthPanel({
: 'font-semibold'
)}
onClick={() => {
signOut()
signOut({ callbackUrl: '/', redirect: true })
}}
>
<LogOut className="size-4" /> LogOut
Expand Down Expand Up @@ -196,7 +196,7 @@ export default function HeaderAuthPanel({
<DropdownMenuItem
className="text-primary flex cursor-pointer items-center gap-1 font-semibold"
onClick={() => {
signOut()
signOut({ callbackUrl: '/', redirect: true })
}}
>
{session?.user.username}
Expand Down Expand Up @@ -229,7 +229,7 @@ export default function HeaderAuthPanel({
<DropdownMenuItem
className="flex cursor-pointer items-center gap-1 font-semibold"
onClick={() => {
signOut()
signOut({ callbackUrl: '/', redirect: true })
}}
>
<LogOut className="size-4" /> Log Out
Expand Down

0 comments on commit 8337b68

Please sign in to comment.