-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Cannot read property 'includes' of undefined in prisma adapter with credentials provider #1692
Comments
@sunrunner4kr-simon I could verify/identify the problem, and I REALLY hope it is finally fixed... Checked it locally with credentials and OAuth providers and looked good, Tell me if you experience it otherwise! |
🎉 This issue has been resolved in version 3.14.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you @balazsorban44 as always!! |
🎉 This issue has been resolved in version 4.0.0-next.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hoping someone can help me.
I had success getting the google provider authentication working with a prisma adapter implementation.
However, I'm having trouble getting the credentials provider to work, and also had the same error response when trying with email.
I get the following error when using Credentials or email
[next-auth][error][callback_oauth_error]
https://next-auth.js.org/errors#callback_oauth_error TypeError: Cannot read property 'includes' of undefined
at Object. (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\lib\oauth\pkce-handler.js:54:32)
at Generator.next ()
at asyncGeneratorStep (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\lib\oauth\pkce-handler.js:32:103)
at _next (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\lib\oauth\pkce-handler.js:34:194)
at D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\lib\oauth\pkce-handler.js:34:364
at new Promise ()
at Object. (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\lib\oauth\pkce-handler.js:34:97)
at Object.handleCallback (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\lib\oauth\pkce-handler.js:41:26)
at D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\index.js:256:32
at Generator.next ()
at asyncGeneratorStep (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\index.js:52:103)
at _next (D:\Web\StoreApp\nextjs-store\node_modules\next-auth\dist\server\index.js:54:194)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:94:5)
Here is my [...nextauth].js
I can give provide access to the repo for anyone that's willing to have a look.
https://github.com/sunrunner4kr-simon/StoreApp
Thanks in advance!
Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
The text was updated successfully, but these errors were encountered: