Options for this constructor.
Token obtained using refreshToken.
Sort of a debounce mechanism when getAuthToken is called in quick succession.
Returns the credentials attributes. This can be used to persist the credentials for later use, for example in a database or a file, including session/localstorage in a browser environment and then use those persisted credentials to create a new instance of RefreshingCredentials without having to go through the login process again.
An object containing refreshToken, clientId, domain, and token.
Static fromGenerated using TypeDoc
The refresh credentials is used to get new auth token to make REST call for Upload and Download requests. This class will use the refresh token generated in a previous interaction with LoginCredentials to get new auth tokens. Also will automatically get a new auth token when the current auth token expires using the refresh token.
It also has a logout function which will revoke the refresh token.
Most callers are recommended to use the LoginCredentials class to get the initial credentials which will return an instance of this class, instead of directly instantiating this class.