Badget icon indicating copy to clipboard operation
Badget copied to clipboard

Bug: Authentication Bug - Redirect to Dashboard

Open alexbennycodes opened this issue 1 year ago • 4 comments

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

alexbennycodes avatar Feb 22 '24 19:02 alexbennycodes

Yes, I agree. We could change a button to redirect, or redirect from the login component.

Codehagen avatar Feb 22 '24 19:02 Codehagen

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?

alexbennycodes avatar Feb 22 '24 19:02 alexbennycodes

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

Codehagen avatar Feb 23 '24 04:02 Codehagen

Okk got it, I will work on it then

alexbennycodes avatar Feb 23 '24 06:02 alexbennycodes