Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchdb-jwt-store-redis

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-jwt-store-redis

A Redis-backed session store for couchdb-jwt.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

CouchDB JWT Redis Session Store

npm David Build Status

This is a Redis-backed session store for use with CouchDB JWT. If performance matters to you, this session store is recommended over the built-in CouchDB store.

Install

Install with CouchDB JWT using NPM:

npm i couchdb-jwt couchdb-jwt-store-redis --save

Usage

Pass to CouchDB JWT as a session store. Redis connection details can be passed as additional parameters.

var RedisStore = require("couchdb-jwt-store-redis");
var couchdbjwt = require("couchdb-jwt")({
	session: {
		store: RedisStore,
		url: "redis://127.0.0.1:6379"
	}
});

couchdbjwt.listen(3000);

You can pass in an existing Redis client from node_redis with the client parameter.

var RedisStore = require("couchdb-jwt-store-redis");
var client = redis.createClient();

var couchdbjwt = require("couchdb-jwt")({
	session: {
		store: RedisStore,
		client: client
	}
});

This store is also compatible with the CouchDB JWT cli.

couchdbjwt --session.store couchdb-jwt-store-redis

FAQs

Package last updated on 22 Feb 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc