Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect login/register routes when already signed in #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devidw
Copy link

@devidw devidw commented Mar 1, 2023

This PR adds functionality that will automatically redirect signed-in users going to /login or register to the home page /.

To make this work, both routes are wrapped into (unauth) named route and inherit a layout which will check the auth state on the server and maybe performs the redirect.

Feel free to reject/accept/modify, @jianyuan 馃槉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant