Protect Page Route in NextJS

Using following library / docs. GitHub - auth0/nextjs-auth0: Next.js SDK for signing in with Auth0.

There is an example at bottom of readme on a HOC that can be used to protect API routes requireAuthentication . Is there anything similar for pages? If not how would one best protect access to a page?

Hey there!

Can I ask you to raise this question as a GitHub issue in the repo so that thee tool maintainers can directly address that? Make sure to share the link with us so we can ping them.

Submitted as issue on github repo:
https://github.com/auth0/nextjs-auth0/issues/148

2 Likes

Perfect! I’ll ping repo maintainers in a few minutes.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.