``update Change logout behavior from route navigation to full page reload after sign-out
``
This commit is contained in:
@@ -58,7 +58,8 @@ function StudentInfo(): React.JSX.Element {
|
|||||||
async function handleLogoutOnClick() {
|
async function handleLogoutOnClick() {
|
||||||
try {
|
try {
|
||||||
await authClient.signOut();
|
await authClient.signOut();
|
||||||
router.push(Paths.AuthLogin);
|
// router.push(Paths.AuthLogin);
|
||||||
|
window.location.reload();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user