1.0.1 • Published 3 years ago

authomatic-redis v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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}}

1.0.1

3 years ago

1.0.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago