Duplicate emails issue

Currently, the app I'm building allows users to create users (user table) or update their existing user to use the same email address that is already used for a different user. Ideally, I would like to limit this to one user account per email address. I've been trying to implement this on my database layer as well as in my trpc mutations, but I heard there might be a simpler way to do this purely in my Better Auth auth.ts file. Is that true, and if so, how?
1 Reply
Ping
Ping3mo ago
Sorry if I miss-understand your situation. Have you tried enforcing emailVerification? This way there can't be more than 1 user with the same email.

Did you find this page helpful?