Overview
Properties
Methods
Constructor
new ClientCredentialsAuthProvider(clientId, clientSecret)
Creates a new auth provider to receive an application token with using the client ID and secret.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
clientId | string | none | The client ID of your application. | |
clientSecret | string | none | The client secret of your application. |
Properties
tokenType
Type: AuthProviderTokenType
The type of tokens the provider generates.
This auth provider generates app tokens.
Methods
getAccessToken(scopes)
asyncRetrieves an access token.
If any scopes are provided, this throws. The client credentials flow does not support scopes.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
scopes | string | Array<string> | none | The requested scopes. |
Return type: AccessToken