Fix signOut redirecting to localhost by using window.location
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user