Protect Page Route in NextJS

Using following library / docs.

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:


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.