Home > @opengovsg/logging > TokenIssuedInput
TokenIssuedInput interface
Input for ApiUsageAudit.tokenIssued().
Signature:
typescript
export interface TokenIssuedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| scopes? | string[] | (Optional) The scopes/permissions granted, if any. | |
| tokenId | string | The 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. |