oscklm
oscklm4mo ago

[ConvexAuth]: Handling errors that happen from the useAuthActions methods

I'm a bit confused, when it comes to catching and handling the errors thrown by signIn() in the front end? Is there any recommendations on how we can handle these errors on the client, and show a bit of information to the user of what went wrong?
No description
1 Reply
oscklm
oscklmOP4mo ago
Seems like this is already mentioned as an issue by ian here: https://github.com/get-convex/convex-auth/issues/54 I'd love to know if there is any suggested work around for now?
GitHub
Propagate auth errors through to client · Issue #54 · get-convex/co...
When auth fails in OAuth, e.g. redirect uri mismatches, it just redirects back and nothing ends up on the client afaict It'd be nice to have a callback for showing the error to the user / handl...

Did you find this page helpful?