Convex Auth catching different type of error on sign in/sign up
I want to be able to display the right message to user for example.
on sign up
- user already sign in
- password is not secure enough
on sign in
- email & password does not match
etc..
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
You'd be interested in https://github.com/get-convex/convex-auth/issues/124, which includes how to do this now and potential improvements
It'd be helpful for that issue to enumerate all the errors you want. Every possible error is too many, but if there's a specific set then someone could contribute an alternate password implementation that does them
It's complicated because some apps don't want to expose all this information, e.g. differentiating between "account exists but password is wrong" and "either account or password is wrong, but I don't tell you which"