From febea32de881ade2ebda3b8e9d97271e2ee0775d Mon Sep 17 00:00:00 2001 From: Atul Gunjal Date: Mon, 19 May 2025 11:39:00 +0530 Subject: [PATCH] Token table caching issue resolved --- src/app/page.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/page.js b/src/app/page.js index 012654c..0deeb0c 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -84,13 +84,13 @@ export default function AuthPage() { loginData.email, loginData.password ); - + if (session) { const user = await account.get(); if (user) { localStorage.setItem("isLoggedIn", "true"); setIsAuthenticated(true); - router.push("/dashboard"); + window.location.href = '/dashboard'; } } } catch (error) { @@ -167,8 +167,8 @@ export default function AuthPage() { {isLoginForm ? "Sign In" : "Sign Up"}

- {isLoginForm - ? "Enter your email and password to sign In!" + {isLoginForm + ? "Enter your email and password to sign In!" : "Enter your deatils to create an account!"}