@did-connect/storage-memory
v2.2.4
Published
Storage engine that uses memory for did-auth
Downloads
28
Readme
Introduction
DID Connect session storage engine that uses memory to store data, implements interfaces defined in @did-connect/storage
.
Install
npm install @did-connect/storage-memory
// or
yarn add @did-connect/storage-memory
Usage
const { MemoryStorage } = require('@did-connect/storage-memory');
const storage = new MemoryStorage();
(async () => {
const sessionId = '123456';
const item = await storage.create(sessionId);
})();