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