A class representation of API-specific user credentials. It encapsulates the tokens and provides helper methods for convenience.
Creates an instance of ApiCredentials.
An object conforming to the ApiCredentials type definition.
Checks if the access token is expired.
Optional
A buffer in seconds to account for clock skew. The token will be considered expired if it expires within this buffer.
true if the token is expired, false otherwise.
true
false
A class representation of API-specific user credentials. It encapsulates the tokens and provides helper methods for convenience.