nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
22.48k stars 2.98k forks source link

Update nextjs.md #10751

Closed KristofaJosh closed 2 weeks ago

KristofaJosh commented 2 weeks ago

You'll find that most users would want to secure pages under a specific route, having this in the documentation can reduce research time.

โ˜•๏ธ Reasoning

Reduce research time

๐Ÿงข Checklist

๐ŸŽซ Affected issues

๐Ÿ“Œ Resources

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
auth-docs โŒ Failed (Inspect) Apr 28, 2024 10:46am
next-auth-docs โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Apr 28, 2024 10:46am
ndom91 commented 2 weeks ago

Thanks for your interest, but we're not really adding anything to the old docs unless its really necessary.

Also we recommend checking the session / authentication as close to the data fethching / using of the session as possible and not rely only on middleware. The new docs contain examples on middleware matcher usage :pray: