whoami
whoami2y ago

Jwt claim fields passthrough

Can I get access to fields that are in jwt claim (for example, I want to pass org_id to the clerk generated jwt token) but not in interface UserIdentity (as in openai)?
2 Replies
ian
ian2y ago
We only expose certain fields that are in the OpenID user identity spec. We started passing through sub though, so we might consider org too, what’s the usecase? One way to hack it would be to map the org to an existing field we do pass through By the way, I might later move some of these questions to #support-community so they are easier for others to search in the future
whoami
whoamiOP2y ago
yea absolutely, I totally missed the support channel, thanks for the reminder I am building a SaaS application so you can imagine everything org / role related stuff will be heavily involved since I am using clerk for auth and they allow putting role / org id information in the jwt, I think it would be great if we can access those information in identity so I don't have to pass org_id everytime

Did you find this page helpful?