Overview
Properties
Constructor
new AppTokenAuthProvider(clientId, clientSecret, impliedScopes)
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. | |
impliedScopes | string[] | <complex> | The scopes that are implied for your application, for example an extension that is allowed to access subscriptions. |
Properties
Methods
getAccessTokenForUser()
asyncThrows, because this auth provider does not support user authentication.
Return type: never
getAppAccessToken(forceNew)
asyncFetches an app access token.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
forceNew | boolean | false | Whether to always get a new token, even if the old one is still deemed valid internally. |
Return type: AccessToken