Implementation of refresh tokens.

new route .../user/refreshtoken
This commit is contained in:
2020-11-21 19:21:41 +01:00
parent c1eb7d87c5
commit 2dc4636296
9 changed files with 116 additions and 47 deletions

6
node_modules/cookie/index.js generated vendored
View File

@@ -120,7 +120,11 @@ function serialize(name, val, options) {
if (null != opt.maxAge) {
var maxAge = opt.maxAge - 0;
if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
if (isNaN(maxAge) || !isFinite(maxAge)) {
throw new TypeError('option maxAge is invalid')
}
str += '; Max-Age=' + Math.floor(maxAge);
}