@zeroid/trimble.identity.clientcredentialtokenprovider
v0.1.0
Published
An implementation of ITokenProvider for OAuth client credential grant type
Downloads
2
Maintainers
Readme
Trimble.Identity.ClientCredentialTokenProvider
Installation
npm install @zeroid/trimble.identity.clientcredentialtokenprovider
Usage
var ClientCredentialTokenProvider = require('@zeroid/trimble.identity.clientcredentialtokenprovider');
var tokenProvider = new ClientCredentialTokenProvider(endpointProvider, 'consumerKey', 'consumerSecret');
tokenProvider.retrieveToken()
.then((token) => {})
.catch(() => {});