koa-uuid
koa uuid middleware
Installation
$ npm install koa-uuid
Configuration
default configuration
const options = signed: false maxAge: 1000 * 60 * 60 * 24 * 365 * 10 httpOnly: true
Example
const uuid = const Koa = // options is not reuqire and will be assignconst options = maxAge expires path domain secure httpOnly sameSite signed overwrite ... const app = app
Attention
configuration signed: true
require app.keys, otherwise signed will always be false
const uuid = const Koa = const app = appkeys = 'secret' 'key';app;
License
MIT