<virtual> new oauthHandler()
An abstract class encapsulating the access token refresh flow.
- Attempt an operation.
- If the operation does not suceed due to 401, then attempt an OAuth2 access token refresh exchange.
- If the refresh is successful, retry the operation.
Methods
-
<static> exports.accessTokenRefresher(oauth)
-
The default implementation of access token refresh. If you use oauth.js buildOAuthHandler, you will be required to provide your own implementation of this function.
Parameters:
Name Type Description oauth
Returns: