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)
1 Reply
My auth.ts file isn't overly complex. I am just setting this up as a basic test. I know the callback isn't being executed because my log stream never shows the "Caught" log in the catch block.