punn
punn2y ago

UserIdentity for Clerk doesn't contain several fields

I'm using Clerk and the storeUser pattern and noticed when calling getUserIdentity() that the UserIdentity object is missing several fields. Most importantly it doesn't contain name, which is present in all users that I'm seeing on the Clerk dashboard. Could the name be propagated from Clerk to convex's UserIdentity object?
2 Replies
Michal Srb
Michal Srb2y ago
Hey @punn , Clerk just added support for full name! You need to add it to the JWT template you setup in step 4 of the get started: https://docs.convex.dev/auth/clerk You'll want to add "name": "{{user.full_name}}", to the Claims list. This is hot off the press based on our feedback to Clerk, let me know if it works for you!
Convex Clerk | Convex Developer Hub
Clerk is an authentication platform providing login via
punn
punnOP2y ago
oh wow that's awesome haha glad it came just in time worked perfectly thank you

Did you find this page helpful?