Skip to content

Home > @opengovsg/logging > TokenInvalidatedInput

TokenInvalidatedInput interface ​

Input for ApiUsageAudit.tokenInvalidated().

Signature:

typescript
export interface TokenInvalidatedInput extends AuditInputBase

Extends: AuditInputBase

Properties ​

PropertyModifiersTypeDescription
reasonstringWhy it was invalidated, e.g. revoked, expired, rotated.
tokenIdstringThe 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.