接下来JS和Auth0保护页面路由
NextsJS & Auth0 Protect Page Route
使用以下库/文档。
https://github.com/auth0/nextjs-auth0.
自述文件底部有一个 HOC 示例,可用于保护 API 路由 requireAuthentication
。页面有类似的东西吗?如果不是,如何最好地保护对页面的访问?
这个问题在 GitHub 的示例回购中得到了回答:
https://github.com/auth0/nextjs-auth0/issues/148
使用以下库/文档。 https://github.com/auth0/nextjs-auth0.
自述文件底部有一个 HOC 示例,可用于保护 API 路由 requireAuthentication
。页面有类似的东西吗?如果不是,如何最好地保护对页面的访问?
这个问题在 GitHub 的示例回购中得到了回答: https://github.com/auth0/nextjs-auth0/issues/148