ManagementTokenProvider

management. ManagementTokenProvider

ManagementTokenProvider Auth0 Management API Token Provider.

Constructor

new ManagementTokenProvider(options)

Source:
Parameters:
Name Type Description
options Object

Options for the ManagementTokenProvider.

Name Type Attributes Default Description
domain String

ManagementClient server domain.

clientId String

Non Interactive Client Id.

clientSecret String

Non Interactive Client Secret.

scope String

Non Interactive Client Scope.

audience String

Audience of the Management API.

enableCache Boolean <optional>
true

Enabled or Disable Cache

cacheTTLInSeconds Number <optional>

By default the expires_in value will be used to determine the cached time of the token, this can be overridden.

Methods

getAccessToken() → {Promise}

Returns the access_token.

Source:
Returns:
Type:
Promise

Promise returning an access_token.