Contains an access token and its optional expiration time.
Keep the Token.token value secret. Token.toString and the SDK
logging helpers mask signatures and long payloads in recognized formats. A
short v0 payload can remain visible. The Token.token getter and
Token.toJSON always return the original value.
Contains an access token and its optional expiration time.
Keep the Token.token value secret. Token.toString and the SDK
logging helpers mask signatures and long payloads in recognized formats. A
short v0 payload can remain visible. The Token.token getter and
Token.toJSON always return the original value.
Returns a safer log value. A short v0 payload can remain visible.
Creates a token.
An omitted expiration means that the SDK cannot determine when the token expires. It does not make the token valid forever.
Optionalexpiration: DateReadonly$typeContains the fully qualified runtime type name.
Returns the token expiration time.
Returns the original token value. Treat the result as a secret.
Returns a safer log value. A short v0 payload can remain visible.
Returns whether two tokens contain the same value.
Returns whether the token value is empty.
Reports whether the known expiration time has passed.
Returns false when the token has no expiration time.
Converts the token to its cache representation.
The returned object contains the unmasked token. Store it only in a protected location.
Contains the expires at.
Contains the token.
Returns a diagnostic string. A short v0 payload can remain visible.
StaticemptyReturns an empty token.
StaticfromRestores a token from the representation returned by Token.toJSON.
Optionalexpires_at?: number | nullContains the expires at.
Optionaltoken?: stringContains the token.
Contains an access token and its optional expiration time.
Keep the Token.token value secret. Token.toString and the SDK logging helpers mask signatures and long payloads in recognized formats. A short
v0payload can remain visible. The Token.token getter and Token.toJSON always return the original value.Example: Inspect token state without reading the credential value