Magic Link works locally and throws Error: EmailSignin in prod #5195
Replies: 6 comments 3 replies
-
Hi 👋, does this email get sent at all?
|
Beta Was this translation helpful? Give feedback.
-
I am having this exact same issue. Any suggestion for fixing this ? Thanks :) |
Beta Was this translation helpful? Give feedback.
-
In my case it was that I forgot to provide an email address to the
|
Beta Was this translation helpful? Give feedback.
-
From the documentation: That was exactly my case, I forgot to specify the SMTP server for my production. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
i fixed mine by reconfiguring my SMTP variables, the port ,email and so on , the variables i used initially were not correct and the email and password weren't accepted |
Beta Was this translation helpful? Give feedback.
-
Question 💬
I have logic in the
signIn
callback that is supposed to only send emails to the whitelisted email addresses. This works totally fine in a local environment but throws anError: EmailSignin
non-local.This is deployed on AWS, and I have a
NEXTAUTH_URL
defined within my.env
file.Adding relevant code for
[...nextauth].js
and the sign-in page below.How to reproduce ☕️
This is my first time using NextAuth, so I am going to air on the side of caution and predict that I'm overlooking something.
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions