koa-session-jwt
a middleware that stores session data in a jwt token
Install
npm i -S koa-session-jwt
or
yarn add koa-session-jwt
Usage
const app = ; app; app
Options
secret string required - the secret string used to sign the jwt
opts object optional - all the options available for jsonwebtoken plus cookie (default jwt-session) that is the name of the cookie used to store the jwt on clients