``update Change logout behavior back to route navigation after sign-out instead of full page reload
``
This commit is contained in:
@@ -58,8 +58,7 @@ 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