Replies: 2 comments 11 replies
-
Is there a specific reason you are not sending temporary passwords? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Check out the Email Provider https://next-auth.js.org/providers/email You could use that for user signup, and after that provide the option to connect any account with the same email address. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is probably as expected, so not a bug per-se, but it interferes with our apps needs. We want to create users before they have an account to email them a session-link (basically a JWT in the URL's query params, which gets put into the cookies on first load) usable for certain actions. While that flow works nicely, and they can then also claim that account by signing in, it fails when they try to sign-in without using the session-link we generated. We're getting an error from here:
next-auth/src/server/lib/callback-handler.js
Lines 204 to 213 in 86baefd
In our best case that condition would not just check for the existence of a user by email, but also whether that user has an account. I think that also kind of aligns with the expectation formulated by the comment i.e.
(which is not the case necessarily, as in our case we have a user without an account)
I'd be curious to hear any ideas around this! Thanks
Beta Was this translation helpful? Give feedback.
All reactions