-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Resend email provider does not create an entry in Account table #10662
Comments
After seeing your issue i checked my mongodb cluster and this is correct, All users that came through resend are not being added to the account collection. |
@gnasamx @tarun7singh |
No. What you are talking is related to account linking (with same email) if I'm not wrong. Also I'm pretty sure, this was working a couple a days ago. I mean I have seen an entry in Account table with type as an email and provider as a Resend after successfully verification. Also it is mentioned the docs that magic link will create an entry in Account table. I have attached a doc link in the first comment. If I understood it correctly then this is part of code that runs on verify callback back for email type and related to account:
Let's see if someone knows/facing this issue. |
I am facing the same issue. Did you find a find a fix for this or identified the cause? |
Sorry but no, I did not identified the cause. I decided not to use the magic link for a time being. |
I'm facing the same issue. Is it a bug or an expected behavior? |
Also having this issue. Seems to be a bug since the Next-Auth docs say: We may need to manually invoke the Adapter.linkAccount |
Provider type
Email
Environment
CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
Memory: 152.95 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Node: 20.12.1 - ~/.nvm/versions/node/v20.12.1/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.1/bin/npm
pnpm: 9.0.4 - /usr/local/bin/pnpm
Chrome: 124.0.6367.61
Safari: 17.4.1
@auth/prisma-adapter: ^2.0.0 => 2.0.0
next: 14.2.2 => 14.2.2
next-auth: 5.0.0-beta.16 => 5.0.0-beta.16
react: ^18 => 18.2.0
Reproduction URL
https://github.com/gnasamx/my-app/blob/main/lib/auth.ts
Describe the issue
Doc says magic link will also add an entry in Account table. Link: https://authjs.dev/concepts/database-models#account
But Account has some problem. I'm using Resend provider. It's minimal setup (repo link is below). But I don't see a user entry in Account table. I can confirm that the User, Session, VerificationToken table entries are working correctly.
How to reproduce
postgresql://username:password@localhost:5432/app
pnpm Prisma db push
Expected behavior
An entry (with type as "email" and provider as "Resend") should be added on successfully verifying the email sign in invitation link.
The text was updated successfully, but these errors were encountered: