@arcblock/did-auth-storage-memory

1.7.1 • Public • Published

@arcblock/did-auth-storage-memory

styled with prettier

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

/@arcblock/did-auth-storage-memory/

    Package Sidebar

    Install

    npm i @arcblock/did-auth-storage-memory

    Weekly Downloads

    22

    Version

    1.7.1

    License

    Apache-2.0

    Unpacked Size

    5.16 kB

    Total Files

    5

    Last publish

    Collaborators

    • wangshijun
    • polunzh
    • mave99a
    • gxw