landry
CCConvex Community
•Created by landry on 5/20/2024 in #support-community
Add orgId and orgRole to ctx.auth.getUserIdentity()
Is it possible to add org_id and org_role attributes to the user object returned by the ctx.auth.getUserIdentity method when using the ConvexProviderWithClerk component? Currently, the user object lacks these attributes, making it cumbersome to write queries and mutations that depend on the current user's organization.
This means that I have to manually provide the orgId returned from Clerks useAuth hook to every query or mutation that depends on the user's organization, which takes away from the ergonomic experience of using Convex with Clerk.
The ability to use http actions to keep the db in sync with Clerk has been incredible. This feature would be the cherry on top 🙂
Thank you for considering this feature request!
5 replies