An in-memory adapter for storing, listing and retrieving service app authorization tokens.
Method to set the token for an organization.
await storageAdapter.setToken('org-id', token);
Organization ID
Respective token
Method to extract a token based on the organization id.
The token object for the organization
const token = await storageAdapter.getToken('org-id');
Method which returns the list of all tokens stored in the InMemoryTokenStorageAdapter.
List of
const tokens = await storageAdapter.listTokens();
Method to delete a token based on the organization id.
await storageAdapter.deleteToken('org-id');
Method to remove all tokens stored in the InMemoryTokenStorageAdapter.
await storageAdapter.resetTokens();
An in-memory adapter for storing, listing and retrieving service app authorization tokens.