Fix signOut redirecting to localhost by using window.location
This commit is contained in:
@@ -78,7 +78,10 @@ export default function Sidebar() {
|
|||||||
<button
|
<button
|
||||||
className="btn btn-ghost"
|
className="btn btn-ghost"
|
||||||
style={{ width: "100%", justifyContent: "center", fontSize: "12px" }}
|
style={{ width: "100%", justifyContent: "center", fontSize: "12px" }}
|
||||||
onClick={() => signOut({ callbackUrl: "/login" })}
|
onClick={async () => {
|
||||||
|
await signOut({ redirect: false });
|
||||||
|
window.location.href = "/login";
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<LogOutIcon />
|
<LogOutIcon />
|
||||||
Çıkış Yap
|
Çıkış Yap
|
||||||
|
|||||||
Reference in New Issue
Block a user