Skip to content

Commit

Permalink
fix: remove outdated nested middleware info nextauthjs#5180
Browse files Browse the repository at this point in the history
  • Loading branch information
luiisca committed Aug 17, 2022
1 parent 448ec10 commit 32710ad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/docs/tutorials/securing-pages-and-api-routes.md
Expand Up @@ -48,8 +48,6 @@ With NextAuth.js 4.2.0 and Next.js 12, you can now protect your pages via the mi
export { default } from "next-auth/middleware"
```

Otherwise, if you only want to protect a subset of pages, you could put it in a subdirectory as well, for example in `/pages/admin/_middleware.js` would protect all pages under `/admin`.

For the time being, the `withAuth` middleware only supports `"jwt"` as [session strategy](https://next-auth.js.org/configuration/options#session).

More details can be found [here](https://next-auth.js.org/configuration/nextjs#middleware).
Expand Down

0 comments on commit 32710ad

Please sign in to comment.