The client ID of your application.
The client secret of your application.
The refresh token obtained during the initial authorization process.
Optional. The scopes to request for the new access token. Defaults to the original scopes.
A promise resolving to a new AccessToken object.
Access tokens eventually expire, but a refresh token can be used to obtain a new one without requiring user reauthorization. This function performs the necessary call to refresh the token and return a new AccessToken object.
HttpError If an error occurs during the request, such as an invalid refresh token.
Refreshes an expired access token using the refresh token.