Skip to content

Instantly share code, notes, and snippets.

@djdam
djdam / LocalForageStorage.ts
Last active January 12, 2022 23:51
LocalForageStorage
import localforage from 'localforage';
import { Auth } from 'aws-amplify';
export class LocalForageStorage {
syncPromise = null;
memoryStore = {};
asyncStore = localforage.createInstance({
name: 'amplifyStore'
});