🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

authomatic-redis

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authomatic-redis

A redis store for Authomatic

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
16
166.67%
Maintainers
2
Weekly downloads
 
Created
Source

authomatic-redis

Build Status Coverage Status

Redis store for Authomatic

install

npm install authomatic-redis

Usage

const Store = require('authomatic-redis');
// Store options
// Note: userIds cannot contain base strings
// const store = Store({redisOptions: {/*https://www.npmjs.com/package/redis*/}, baseString: 'String'})
// OR
// const redis = require('redisredis'),
// const store = Store({client: redis.createClient()});
const store = Store();
const Authomatic = require('authomatic');
const authomatic = Authomatic({store}); 
// authomatic is ready

// You many use the redis client if needed
// store.client.quit()
// Enjoy

Documentation

Store options:

  • @param {Object} [options.redisOptions] options to be passed directly to the redis client if you do not pass a redis client.
  • @param {Object} [options.client] redis client provided by the user.
  • @return {{remove, removeAll, add}}

Keywords

authomatic

FAQs

Package last updated on 08 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts