Skip to main content

Interface: TokenInfo

Defined in: src/management/oauth-client.ts:7

Snapshot of the current token state (never exposes the actual token).

Properties​

hasToken​

hasToken: boolean;

Defined in: src/management/oauth-client.ts:9

Whether a token has been fetched.


isValid​

isValid: boolean;

Defined in: src/management/oauth-client.ts:11

Whether the token is valid (not expired and outside the pre-expiry buffer).


isExpired​

isExpired: boolean;

Defined in: src/management/oauth-client.ts:13

Whether the token has passed its expiry time.


isExpiringSoon​

isExpiringSoon: boolean;

Defined in: src/management/oauth-client.ts:15

Whether the token is within the pre-expiry buffer window.


expiresInMs​

expiresInMs: number;

Defined in: src/management/oauth-client.ts:17

Milliseconds until the token expires (0 if expired or no token).


expiresAt​

expiresAt: number;

Defined in: src/management/oauth-client.ts:19

Unix timestamp (ms) when the token expires (0 if no token).