DID Connect session storage engine that uses memory to store data, implements interfaces defined in @did-connect/storage
.
npm install @did-connect/storage-memory
// or
yarn add @did-connect/storage-memory
const { MemoryStorage } = require('@did-connect/storage-memory');
const storage = new MemoryStorage();
(async () => {
const sessionId = '123456';
const item = await storage.create(sessionId);
})();