How to get organization plugin data into OIDC claims

I successfully set up the organization plugin, good stuff. However, I'm unsure how to access this data and set it as user claims for OIDC ID tokens. OIDC plugin getAdditionalUserInfoClaim's first parameter is the user object, but the user's org info isn't listed on this object. Missing something?
1 Reply
bc 🐧🪺
bc 🐧🪺OP5mo ago
I had an idea to solve this, which is to use the db client directly in getAdditionalUserInfoClaim to query the database and pull the data. However, getAdditionalUserInfoClaim doesn't seem to support async flows, just sync so this doesn't work (im using drizzle)

Did you find this page helpful?