Enrich JWT with organisation membership info

Hi,

Is there any recommended way to retrieve organisation and membership info for the user and active organisation, when adding JWT claims in definePayload? We want to embed eg. the member role in the JWT. I looked at using getFullOrganization , but that doesn't work as we're missing the request headers (or is there a way to access them?).

Best,
/d
Was this page helpful?