LukeL
Convex Community2y ago
4 replies
Luke

Access Clerk Organization in Query

I am authenticating users in my app via Clerk and can easily query for Clerk userId when making requests via ctx.auth. However I want to link an entity in my DB to Clerk Organizations and I don't have that information readily available in the Convex environment/context.

Is there a recommended approach to this from within Convex? The way I am thinking now is either fetching via Clerk in the frontend and passing it to the query each time or duplicating all of the Clerk data in Convex, but I'm not too keen on that.
Was this page helpful?