Badget
Badget copied to clipboard
Bug: Authentication Bug - Redirect to Dashboard
Describe the bug
https://github.com/projectx-codehagen/Badget/assets/98402835/2f115291-cea2-4220-be51-983db537b8f1
Ideally a user who is already logged in should be forced to be redirected to the dashboard page, they should be able to access the home page.
Steps to reproduce
Browsers
Chrome
Additional context (Is this in dev or production?)
production
Yes, I agree. We could change a button to redirect, or redirect from the login component.
I could take up this task. But one question should we allow the user to access this if logged in, we can redirect to the dashboard without this page ever being rendered, or should we redirect to the dashboard on click of the buttons in the hero component?
I think we can make the "lets explore badget" -> /dashboard (Going into the login page if not logged inn) And if they press the sign in button -> login -> Redirect to /dashboard after succsess. I think there is documentation of this on Clerk docs
Okk got it, I will work on it then