Token table caching issue resolved

This commit is contained in:
ATUL GUNJAL 2025-05-19 11:39:00 +05:30
parent 2d9b89fdd8
commit febea32de8

View File

@ -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"}
</h1>
<p className="text-sm text-gray-500 dark:text-gray-400">
{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!"}
</p>
</div>