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 localStorage (LocalStorageApiTokenStore), under ~/.dfuse/<sha256-api-key>/token.json file (OnDiskApiTokenStore) or more generically at any path (FileApiTokenStore).
localStorage
~/.dfuse/<sha256-api-key>/token.json
Note The OnDiskApiTokenStore and FileApiTokenStore are available only on a Node.js environment.
Interfaces
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
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
localStorage
(LocalStorageApiTokenStore), under~/.dfuse/<sha256-api-key>/token.json
file (OnDiskApiTokenStore) or more generically at any path (FileApiTokenStore).Note The OnDiskApiTokenStore and FileApiTokenStore are available only on a Node.js environment.
Interfaces