@zeroid/trimble.bearertokenhttpclientprovider
v0.1.1
Published
An implementation of IHttpClientProvider with support for bearer tokens
Downloads
1
Readme
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(() => {});