Module: auth/OAuth2TwoLegged

(require("auth/OAuth2TwoLegged"))()

Constructs a new OAuth2TwoLegged. Inherits from OAuth2

Source:

Methods

authenticate()

Authorize and get an access token

Source:
Returns:

Promise

getCredentials()

Get the credentials

Source:

isAuthorized() → {boolean}

Check if token is authorized

Source:
Returns:
Type
boolean

setCredentials(credentials)

Set the credentials manually

Parameters:
Name Type Description
credentials
Source: