``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() {
|
||||
try {
|
||||
await authClient.signOut();
|
||||
// router.push(Paths.AuthLogin);
|
||||
window.location.reload();
|
||||
router.push(Paths.AuthLogin);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user