You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to setup authentication, with an Email adapter and a Prisma Adapter in a nuxt base application. I followed the documentation from Auth.js, to build the following code:
When a new email address is sent to signIn, an email, with a magic link is send, and when user click on this link, he gets to the homepage, as an authenticated user. In the database an entry is created in User table, another one in Session table, but nothing in Account table.
Logging the events (signIn, createUser, linkAccount and session), I get see both User and Session being triggered and created in the DB, but nothint for Account.
I understood from Auth.js documentation that : Account creation in the database is automatic and happens when the user is logged in for the first time with an authentication provider (either OAuth, magic links or plain credentials) or the Adapter.linkAccount method is invoked.
Am I doing something wrong ? Or Did I misunderstood how this shouls work ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to setup authentication, with an Email adapter and a Prisma Adapter in a nuxt base application. I followed the documentation from Auth.js, to build the following code:
When a new email address is sent to
signIn
, an email, with a magic link is send, and when user click on this link, he gets to the homepage, as an authenticated user. In the database an entry is created in User table, another one in Session table, but nothing in Account table.Logging the events (
signIn
,createUser
,linkAccount
andsession
), I get see both User and Session being triggered and created in the DB, but nothint for Account.I understood from Auth.js documentation that : Account creation in the database is automatic and happens when the user is logged in for the first time with an authentication provider (either OAuth, magic links or plain credentials) or the Adapter.linkAccount method is invoked.
Am I doing something wrong ? Or Did I misunderstood how this shouls work ?
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions