UNPKG

@alwaysai/cloud-api

Version:

A library for defining the alwaysAI Cloud API

26 lines 699 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthenticationInMemoryStorage = void 0; let data = {}; function AuthenticationInMemoryStorage() { const storage = { listItems() { return Object.entries(data); }, setItem(key, value) { data[key] = value; }, getItem(key) { return data[key] || ''; }, removeItem(key) { delete data[key]; }, clear() { data = {}; } }; return storage; } exports.AuthenticationInMemoryStorage = AuthenticationInMemoryStorage; //# sourceMappingURL=authentication-in-memory-storage.js.map