Class: oauthHandler

oauthHandler

<virtual> new oauthHandler()

An abstract class encapsulating the access token refresh flow.

  1. Attempt an operation.
  2. If the operation does not suceed due to 401, then attempt an OAuth2 access token refresh exchange.
  3. If the refresh is successful, retry the operation.
Override the accessTokenRefresher member function, to handle the request logic specific to the target OAuth2 provider.

Source:

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
Source:
Returns: