koa-modules / koa-crypto-session

[koa-crypto-session]
0 stars 12 forks source link

custom decode passed to koa-session #1

Open haoxins opened 9 years ago

haoxins commented 9 years ago

https://github.com/onebook/koa-crypto-session/blob/master/index.js#L53-L55

// check if the cookie is expired
if (!json._expire) return null
if (json._expire < Date.now()) return null

this should be done by koa-session