Module: auth/OAuth2TwoLeggedV2

(require("auth/OAuth2TwoLeggedV2"))()

Constructs a new OAuth2TwoLeggedV2. Inherits from OAuth2

Source:

Methods

authenticate()

Authorize and get a 2 legged access token

Source:
Returns:

Promise

getCredentials()

Get the credentials

Source:

isAuthorized() → {boolean}

Check if token is authorized

Source:
Returns:
Type
boolean

revokeToken()

Revoke a 2 legged access token

Source:
Returns:

Promise

setCredentials(credentials)

Set the credentials manually

Parameters:
Name Type Description
credentials
Source: