-
Notifications
You must be signed in to change notification settings - Fork 39
feat: migrate from NextAuth.js v4 to Auth.js v5 #988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
70ea752
3332b35
6541948
aae5ad1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ | |
| "test:e2e": "playwright test" | ||
| }, | ||
| "dependencies": { | ||
| "@auth/prisma-adapter": "^2.11.1", | ||
| "@aws-sdk/client-s3": "3.896.0", | ||
| "@aws-sdk/s3-request-presigner": "3.896.0", | ||
| "@codemirror/lang-cpp": "6.0.3", | ||
|
|
@@ -47,7 +48,6 @@ | |
| "@dnd-kit/utilities": "3.2.2", | ||
| "@headlessui/react": "2.2.9", | ||
| "@heroicons/react": "2.2.0", | ||
| "@next-auth/prisma-adapter": "1.0.7", | ||
| "@next/bundle-analyzer": "15.5.5", | ||
| "@prisma/client": "6.17.1", | ||
| "@smithy/node-http-handler": "^4.4.5", | ||
|
|
@@ -66,7 +66,7 @@ | |
| "katex": "0.16.25", | ||
| "motion": "12.23.24", | ||
| "next": "15.5.9", | ||
| "next-auth": "4.24.11", | ||
| "next-auth": "5.0.0-beta.30", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: As of Jan 6, 2026: next-auth v5 is still published as beta on npm (5.0.0‑beta.x); the latest stable release series on npm remains the 4.24.x line. [1][2][3] Sources:
🌐 Web query:
💡 Result: Known/observed production issues for next-auth 5.0.0-beta.30 (summary):
Sources: If you want, I can open those issues and extract exact reports / timestamps or help you troubleshoot a specific production error you’re seeing. 🌐 Web query:
💡 Result: No — Auth.js / NextAuth v5 was still beta as of January 6, 2026 (no stable v5 release). Official docs and repo still reference v5 as a beta/“next-auth@beta” release and migration guidance, and there are open issues asking for clarity on v5’s beta status. [1][2][3] Sources:
Remove next-auth beta version; use stable v4.24.x for production. Next-auth v5 (5.0.0-beta.30) remains in beta as of January 2026, with the stable release series still being 4.24.x. Production deployments with v5 beta risk multiple documented issues:
Use the stable 4.24.x line unless explicitly evaluating v5 as a pre-release. 🤖 Prompt for AI Agents |
||
| "next-mdx-remote": "5.0.0", | ||
| "next-themes": "0.4.6", | ||
| "prism-react-renderer": "1.3.5", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
@auth/prisma-adapter 2.11.1 compatibility next-auth 5.0.0-beta.30💡 Result:
Short answer: Yes — @auth/prisma-adapter@2.11.1 is the Auth.js/NextAuth v5 adapter package and is intended to be used with NextAuth/Auth.js v5 (including 5.0.0-beta.*). [1][2]
Notes:
Sources:
[1] Auth.js / NextAuth v5 migration docs (adapters → use @auth/prisma-adapter). (authjs.cn)
[2] @auth/prisma-adapter package / registry (v2.11.1 listed). (classic.yarnpkg.com)
[3] Example issue showing adapter/Prisma client incompatibility reports. (github.com)
Citations:
Verify Prisma client version compatibility with the adapter.
@auth/prisma-adapter@^2.11.1is confirmed compatible withnext-auth@5.0.0-beta.30for Auth.js v5. However, ensure your Prisma client version is compatible with this adapter version—mismatches between adapter and Prisma client versions (e.g., older adapter with Prisma 6.x) can cause runtime or type errors. Check the adapter's GitHub/npm documentation and any reported issues for your specific Prisma + adapter version combination.🤖 Prompt for AI Agents