onaio / fhir-tooling

A command line utility to support FHIR Core content authoring
Other
1 stars 1 forks source link

Cache the accesstoken #189

Open Wambere opened 1 month ago

Wambere commented 1 month ago

At the moment, every time we need to make a request, unless the accesstoken is provided in the configs, we make a new request to get an access token

This can be made better by making the request only once and then caching it and reusing it until it expires