Skip to content

Home > @opengovsg/logging > TokenRefreshedInput

TokenRefreshedInput interface ​

Input for ApiUsageAudit.tokenRefreshed().

Signature:

typescript
export interface TokenRefreshedInput extends AuditInputBase

Extends: AuditInputBase

Properties ​

PropertyModifiersTypeDescription
tokenIdstringThe refreshed token's identifier (a reference, not the token value).
userId?string(Optional) The subject the token is bound to, if any. Promoted to user_id.