Open keitakn opened 9 months ago
I was also thinking about this now, I also think that we should add unique
I also thought the same thing and created the discussion (https://github.com/nextauthjs/next-auth/discussions/9166). I think we need to fix this issue.
Question 💬
I am trying to persist Auth.js data to RDB using the following table structure.
https://authjs.dev/reference/adapters#models
I use PlanetScale.
I am thinking of using
@auth/drizzle-adapter
.The
MySQL
section of the following document shows no unique constraint onemail
.https://authjs.dev/reference/adapter/drizzle
But in @auth/prisma-adapter, email is set to unique.
https://authjs.dev/reference/adapter/prisma
My understanding is that Auth.js does not allow sign-in with the same email address.
If it is correct to make the email unique, I would appreciate it if you could correct the following document🙏
https://authjs.dev/reference/adapter/drizzle
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR