Olamide
Olamide4mo ago

I noticed something with convex auth

So if a user signs up with email and password and logs out if another user tries to signs up with the same exact email and password it just signs them in automatically why?
1 Reply
djbalin
djbalin4mo ago
Since both sign in and sign up events use the same signIn convex function, maybe you forgot to specify the flow which differentiates a sign in event from a sign up event? For example:
await signIn('password', {
flow: 'signUp',
email,
password
});
await signIn('password', {
flow: 'signUp',
email,
password
});
I think (I hope !!) that this would fail if it was called with an email that already exists