Replies: 1 comment 1 reply
-
Im running into the same problem, building a small project to learn auth v5, using next 14.2.4, next-auth: ^5.0.0-beta.19", prisma adaptor Ive been going at it for a few hours and I cannot see anything wrong with my setup: Here is my authorize function:
this is my form action that Iam trying to use to test this:
This is the current state of my console log right now:
hopefully some of this info will lead to explanation of why this is happening |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In NextAuth 5.0.0-beta.19 I try to implement a credentials provider that authenticates against an LDAP service and I try to call
signIn()
from a NextJS server action.Authentication works fine, the only thing is I am not able to display a correct error message in case of a failure due to network errors.
NextAuth seems to throw a
CallbackRouteError
regardless ifauth.ts
authorize
returnsnull
or throws an error.How can
signIn()
diferentiate between invalid credentials and a real error?Excerpt of
auth,ts
:signIn()
in a NextJS server actionBeta Was this translation helpful? Give feedback.
All reactions