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 = const S1Store = session app
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.