Protect Page Route in NextJS

Using following library / docs. https://github.com/auth0/nextjs-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:

1 Like

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