s1-connect

0.1.2 • Public • Published

S1 Connect

S1 session store for Express and Connect.

Installation

Install it with either NPM or Yarn like so:

npm install s1-connect
yarn add s1-connect

Usage

Express or Connect integration

Express 4.x, 5.0 and Connect 3.x:

const session = require('express-session')
const S1Store = require('s1-connect')(session)
 
app.use(
  session({
    secret: 'foo',
    store: new S1Store({ token: 'token for s1' })
  })
)

Generate a token

You probably want to generate a token for your database - just head over to s1.kognise.dev/token and copy that. I recommend you put it in an environment variable since it can be used to access all your precious session data.

/s1-connect/

    Package Sidebar

    Install

    npm i s1-connect

    Weekly Downloads

    1

    Version

    0.1.2

    License

    UNLICENSED

    Unpacked Size

    3.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • archmaster