Handling Facebook provider not returning email address error #12241
Unanswered
lunarW1TCH
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am implementing Facebook provider in AuthJS. I am using MongoDB and Prisma adapter. My user model and the app's functionality requires email address to be returned.
Facebook provider reference states that
This will obviously cause an error to be thrown in
createUser
method in adapter:AdapterError is thrown when any of the Adapter methods fail during execution.
How can I handle such an error to tell the user what is the cause? I am using custom error pages and no errors passed as query params indicate this kind of error. Is there something missing in the documentation or am I not seeing an obvious solution?
I do not want to simply show a
Something went wrong error
during sign up.next: ^14.2.15
next-auth: ^5.0.0-beta.19
@auth/prisma-adapter: ^2.7.3
Beta Was this translation helpful? Give feedback.
All reactions