-
Notifications
You must be signed in to change notification settings - Fork 368
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
Documentation for withPageAuthRequiredAppRouter wrong #1642
Comments
2 tasks
Hi, I have a custom login page and I would like to return my protected page to that custom login.
Is there a fix for this? or a workaround besides checking if the user is logged in on every page? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Description
The code example in the documentation for
withPageAuthRequiredAppRouter
contains a non working example:The
withPageAuthRequired
helper should wrapfunction ProtectedPage() ...
, as it is now, the example exports a new function calledwithPageAuthRequired
.Reproduction
Copy the code from the example.
Additional context
No response
nextjs-auth0 version
3.5.0
Next.js version
14.1.0
Node.js version
20.11.0
The text was updated successfully, but these errors were encountered: