Home > @opengovsg/logging > TokenInvalidatedInput
TokenInvalidatedInput interface
Input for ApiUsageAudit.tokenInvalidated().
Signature:
typescript
export interface TokenInvalidatedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| reason | string | Why it was invalidated, e.g. revoked, expired, rotated. | |
| tokenId | string | The invalidated token's identifier (a reference, not the token value). | |
| userId? | string | (Optional) The subject the token was bound to, if any. Promoted to user_id. |