chore(docs): update `migrating-to-v5` docs
☕️ Reasoning
This pull request updates the documentation in the migrating-to-v5 section by expanding and improving the existing content. A new Route Handlers tab was added to the details section, providing guidance on how to use NextAuth.js v5 with Route Handlers. Additionally, the Client Component section was revised to address multiple issues raised by the community regarding unclear documentation.
The format:write script was also run to ensure consistent formatting across the documentation files.
It’s been a while since my last contribution to the project, so I’m glad to be back and help improve the docs.
Key Changes
- Updated the
Client Componentsection - Added a new
Route Handlerssection - Ran the
format:writescript
🧢 Checklist
- [x] Documentation
- [ ] Tests
- [ ] Ready to be merged
🎫 Affected issues
#12767
📌 Resources
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| auth-docs | Preview | Comment | Aug 24, 2025 10:46pm |
1 Skipped Deployment
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-auth-docs | Preview | Aug 24, 2025 10:46pm |
@halvaradop is attempting to deploy a commit to the authjs Team on Vercel.
A member of the Team first needs to authorize it.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 37.89%. Comparing base (39dd3b9) to head (202b3ee).
Additional details and impacted files
@@ Coverage Diff @@
## main #12872 +/- ##
==========================================
- Coverage 38.76% 37.89% -0.87%
==========================================
Files 200 195 -5
Lines 32323 31137 -1186
Branches 1393 1298 -95
==========================================
- Hits 12529 11799 -730
+ Misses 19794 19338 -456
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.