A simple API token store interface supporting async operations. This interface is used to store the API token when it has been refreshed as well as retrieving a token from the store.
By providing your own ApiTokenStore implementation, you can for
example easily store the token in the
~/.dfuse/<sha256-api-key>/token.json file (OnDiskApiTokenStore) or
more generically at any path (FileApiTokenStore).
Release any resources hold by this ApiTokenStore instance. Must be tolerant to being called multiple times.
Once called, the instance is assumed unsuable and should never be invoked anymore.
Generated using TypeDoc