Gnomis
Gnomis
CCConvex Community
Created by Gnomis on 2/8/2025 in #support-community
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?
2 replies
CCConvex Community
Created by Gnomis on 1/22/2025 in #support-community
[ConvexAuth] Doc<'users'> don't update from default authTables
I have extended the users table in my schema to include more attribute required for my project. However, when I want to get the type from Doc, it believes my users table is the one from authTables, and not my updated version.
6 replies
CCConvex Community
Created by Gnomis on 12/18/2024 in #support-community
nextjs middleware
Currently trying to upgrade to next 15. However, when following the changelog, the middleware seem to be broken. I have updated the middleware to be identical to the example shown at https://labs.convex.dev/auth/authz/nextjs. It seems like convexAuth.isAuthenticated() always returns false and therefore continuously redirecting back to the signin page.
18 replies