fix: redirect to login page after sign out

This commit is contained in:
2026-05-12 00:53:35 +02:00
parent d748e3e6c5
commit eb07760748
+2 -1
View File
@@ -1,12 +1,13 @@
import { Button } from "@/components/ui/button"
import { signOut } from "@/lib/auth"
import { SIGN_IN_URL } from "@/lib/constants"
export function SignOut() {
return (
<form
action={async () => {
"use server"
await signOut()
await signOut({ redirectTo: SIGN_IN_URL })
}}
>
<Button type="submit" variant="destructive">