NextAuth CredentialsProvider User vs Account
I am trying to add a way to login with credentials to my t3 app and don't have very much experience with setting up prisma schemas. It seems that users that create accounts with the GoogleProvider automatically have both a
User
and an Account
item added to their respective tables, but when I use the CredentialsProvider only a User
is getting created (not Account
). I'm not sure if I am doing something wrong in my schema or create logic (or if this is even necessarily a problem). My schemas are below, I added a username and password field to the User
table. I would appreciate any advice/docs to point me in the right direction, thanks!
0 Replies