OAuth2 token credential with refresh capability
Constructor for OAuth2Credential
Optional
Type of credential
The access token
The refresh token
When the token expires
Gets the access token
Gets headers for HTTP requests
Whether the token can be refreshed
Whether the token is expired
Refreshes the token
OAuth2 token credential with refresh capability