Reference
Token claims
Decane access tokens are ES256-signed JWTs carrying uid, sub, project_id, jti, iat, and exp. They set no iss or aud — project_id is the audience-equivalent, which is why the appId check exists. Verification normalises them into DecaneClaims:
| Field | JWT claim | Meaning |
|---|---|---|
userId | uid | Stable Decane user id (a UUID). The value to key your own records off. Required — a verified token without it is rejected. |
subject | sub | Hashed subject — an HMAC of the auth-provider identity. Decane stores no raw identity, so this is not reversible to an email. |
projectId | project_id | The project (app) the token was issued for. Checked against appId when configured. |
tokenId | jti | Unique per issued token — useful for your own replay bookkeeping. |
issuedAt / expiresAt | iat / exp | Seconds since epoch. Expiry is enforced during verification. |
raw | — | The full verified payload, for any claim not surfaced above. |