Skip to content

Home > @opengovsg/logging > TokenIssuedInput

TokenIssuedInput interface ​

Input for ApiUsageAudit.tokenIssued().

Signature:

typescript
export interface TokenIssuedInput extends AuditInputBase

Extends: AuditInputBase

Properties ​

PropertyModifiersTypeDescription
scopes?string[](Optional) The scopes/permissions granted, if any.
tokenIdstringThe token's identifier — a reference, never the token value.
userId?string(Optional) The subject the token was issued for, if user-bound. Promoted to user_id.