Fix signOut redirecting to localhost by using window.location

This commit is contained in:
AyrisAI
2026-05-14 02:13:36 +03:00
parent 8dc60d8ab0
commit f80a6a3e70

View File

@@ -78,7 +78,10 @@ export default function Sidebar() {
<button
className="btn btn-ghost"
style={{ width: "100%", justifyContent: "center", fontSize: "12px" }}
onClick={() => signOut({ callbackUrl: "/login" })}
onClick={async () => {
await signOut({ redirect: false });
window.location.href = "/login";
}}
>
<LogOutIcon />
Çıkış Yap