Trimble.BearerTokenHttpClientProvider
Installation
npm install @zeroid/trimble.bearertokenhttpclientprovider
Usage
var BearerTokenHttpClientProvider = require('@zeroid/trimble.bearertokenhttpclientprovider');
var httpClientProvider = new BearerTokenHttpClientProvider(tokenProvider, 'https://endpoint.base.url');
httpClientProvider.retrieveClient()
.then((httpClient) => {})
.catch(() => {});