-
Notifications
You must be signed in to change notification settings - Fork 6
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication and protecting routes with NextJS #2
Comments
` I tried it like this in my __app.tsx. But now the page is loading and then the user gets redirected to the login page... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
very nicley done project!
I am currently working on a similar one.
But I can´t figure out the authentication fully.
I can login and logout users. But I can´t figure out how to protect routes and redirect Users to the login page if they are not logged in.
Also I have problems to get the data of the user that is currently logged in.
Can you help me with that?
Kind regards,
Stefan
The text was updated successfully, but these errors were encountered: