Nocturnal Practitioners of Magic
Have ideas to improve npm?Join in the discussion! »

@accounts/redis
TypeScript icon, indicating that this package has built-in type declarations

0.21.1 • Public • Published

@accounts/redis

Redis adaptor for accounts

npm MIT License

Install

yarn add @accounts/redis

Usage

import IORedis from 'ioredis';
 
import { AccountsServer } from '@accounts/server';
import { DatabaseManager } from '@accounts/database-manager';
import { RedisSessions } from '@accounts/redis';
 
const ioRedis = new IORedis();
 
const sessionDb = new RedisSessions(ioRedis, {
  ...options,
});
 
const accountsDb = new DatabaseManager({
  sessionStorage: sessionDb,
});
 
const accountsServer = new AccountsServer({ db: accountsDb });

Keywords

none

Install

npm i @accounts/[email protected]

Version

0.21.1

License

MIT

Unpacked Size

22.5 kB

Total Files

19

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar