Merge pull request 'Token table caching issue resolved' (#5) from dev/TokenTableCachingIssue into main
Reviewed-on: #5
This commit is contained in:
commit
a30cf6fd60
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user