Closed hobi9 closed 10 months ago
This PR confuses me, why not just import the user hook into the router file and conditionally show the sign up buttons?
This PR confuses me, why not just import the user hook into the router file and conditionally show the sign up buttons?
I believe the AuthGate
parent component is needed for the necessary validation checks before rendering the actual component. I don't think there's a more cleaner way tbh.
login and signup components are not accessible anymore if the user has signed in.