Interface: TokenInfo
Defined in: src/management/oauth-client.ts:6
Snapshot of the current token state (never exposes the actual token).
Properties
hasToken
hasToken: boolean;
Defined in: src/management/oauth-client.ts:8
Whether a token has been fetched.
isValid
isValid: boolean;
Defined in: src/management/oauth-client.ts:10
Whether the token is valid (not expired and outside the pre-expiry buffer).
isExpired
isExpired: boolean;
Defined in: src/management/oauth-client.ts:12
Whether the token has passed its expiry time.
isExpiringSoon
isExpiringSoon: boolean;
Defined in: src/management/oauth-client.ts:14
Whether the token is within the pre-expiry buffer window.
expiresInMs
expiresInMs: number;
Defined in: src/management/oauth-client.ts:16
Milliseconds until the token expires (0 if expired or no token).
expiresAt
expiresAt: number;
Defined in: src/management/oauth-client.ts:18
Unix timestamp (ms) when the token expires (0 if no token).