AthomStorageAdapter

A storage adapter is used to persist sessions. It is possible to supply your own storage adapter by extending this class and supplying an instance of it to the constructor of {{AthomCloudAPI}}.

Constructor

new AthomStorageAdapter()

Methods

async get() → {object}

This function should return the stored object or null
Returns:
object

async set(value) → {object}

This function should update the stored object
Parameters:
Name Type Description
value object the new value
Returns:
object

Classes

LocalStorage