@arcblock/did-auth-storage-memory
v1.7.1
Published
Storage engine that uses memory for did-auth
Downloads
119
Readme
@arcblock/did-auth-storage-memory
Storage engine that uses mongo to store data, implements interfaces defined in
@arcblock/did-auth-storage
.
Table of Contents
Install
npm install @arcblock/did-auth-storage-memory
// or
yarn add @arcblock/did-auth-storage-memory
Usage
const MemoryStorage = require('@arcblock/did-auth-storage-memory');
const storage = new MemoryStorage();
(async () => {
const token = '123456';
const item = await storage.create(token);
})();
Contributors
| Name | Website | | -------------- | -------------------------- | | wangshijun | https://ocap.arcblock.io |