GnomisG
Convex Community12mo ago
11 replies
Gnomis

Catching error when creating a user

I am building an intranet as a fun project on the side. For the login flow, i want to use oauth providers, but only allow for users with email existing in a table in convex. I am able to this in the createOrUpdate callback. However, in the instance where someone is trying to login that i dont want to allow, an error is thrown. The error does however only show in the convex logs. Is there a way I can catch this error so i can show an appropriate message on the client?
Was this page helpful?