Implementation of refresh tokens.
new route .../user/refreshtoken
This commit is contained in:
6
node_modules/cookie/index.js
generated
vendored
6
node_modules/cookie/index.js
generated
vendored
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user