Clerk Organization & Membership + Convex
I am trying to build an app with Clerk Organization and Convex. Now in the mutations I would like to have access to some custom claims setup in the Clerk Template.
Looks like Convex only allows for standard claims specified in the OpenId protocol. Has anyone ever tried something similar? How do you check for organization membership and permissions in your mutations/queries?
Using the following claims:
{
"aud": "convex",
"name": "{{user.full_name}}",
"email": "{{user.primary_email_address}}",
"org_id": "{{org.id}}",
"org_role": "{{org.role}}",
"org_permissions": "{{org_membership.permissions}}",
"picture": "{{user.image_url}}",
"nickname": "{{user.username}}",
"given_name": "{{user.first_name}}",
"updated_at": "{{user.updated_at}}",
"family_name": "{{user.last_name}}",
"phone_number": "{{user.primary_phone_number}}",
"email_verified": "{{user.email_verified}}",
"phone_number_verified": "{{user.phone_number_verified}}"
}
3 Replies
Welcome! Latest team response on the custom claims question here: https://discord.com/channels/1019350475847499849/1235055073080508436/1235167562803712072
Hmm, that's a pity, looks like it's not in their roadmap. Not a very nice solution but definitely works for now. Thank you @erquhart really appreciate your quick turnaround and your help 🙏
Custom claims are now supported with
convex@1.14.0