WorkOS AuthKit JWT structure
A WorkOS session JWT contains the active `org_id`, the `role` (a free-form string defined in the WorkOS dashboard), the `permissions` array (the role's flattened scopes), and a `sid` (session id). The standard registered claims — `iss`, `sub`, `aud`, `exp`, `iat`, `jti` — are all populated.
For SSO-originated sessions, you'll also see `connection_id` (the SAML/OIDC connection) and sometimes `directory_id` (the SCIM directory). These are diagnostic — useful for confirming a session came from the expected identity provider when debugging access issues.