cameronmC
Convex Community2y ago
1 reply
cameronm

auth:store signUp Error with duplicate email

I am attempting to handle cases where a user attempts to create an account with an email that already exists in the users table

Based on docs it seems I am suppose to use createOrUpdateUser callback in auth.ts

My issue is that auth:store is throwing an error before this callback is reached.

auth:store
failure
314ms
Uncaught Error: Account <someexistingemail@email.com> already exists
at handler (../../../../node_modules/.pnpm/@convex-dev+auth@0.0.61_convex@1.14.4/node_modules/@convex-dev/auth/dist/server/implementation.js:601:28)
Was this page helpful?