We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1a89e commit f53ac56Copy full SHA for f53ac56
frontend/src/app/home/components/landing-page/LandingPage.tsx
@@ -18,12 +18,14 @@ const LandingPage = () => {
18
},
19
});
20
21
+ // Redirect to dashboard if user authenticates (token is present)
22
useEffect(() => {
23
if (token) {
24
router.push("/");
25
}
26
}, [token, router]);
27
28
+ // Trigger OAuth pop up only if user is not authenticated (token is not present)
29
const handleLogin = () => {
30
31
0 commit comments