How to get orgId from Clerk in Convex?
I updated JWT template to include orgId, however
const identity = await ctx.auth.getUserIdentity()
still returns this:

4 Replies
Im not exactly sure, but i think i didn't do that because its not in the "JWT standard" template. I read others trying to send it in on like the country field or something. I've done it with webhooks and through the browser only.
That works, thanks! @ampp
These are the standard fields, you can repurpose many of them for other information if you need to do that: https://github.com/get-convex/convex-js/blob/main/src/server/authentication.ts#L27-L47
Docs: https://docs.convex.dev/auth/functions-auth#clerk-claims-configuration
(they could be more explicit about this case as it is a common request)
Auth in Functions | Convex Developer Hub
Within a Convex function, you can access information