Browse Source
fix: set no-store cache control on jwt renew response
pull/7188/head
Nicolas Giard
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
server/core/auth.js
|
|
@ -156,6 +156,9 @@ module.exports = { |
|
|
|
} else { |
|
|
|
res.cookie('jwt', newToken.token, { expires: DateTime.utc().plus({ days: 365 }).toJSDate() }) |
|
|
|
} |
|
|
|
|
|
|
|
// Avoid caching this response
|
|
|
|
res.set('Cache-Control', 'no-store') |
|
|
|
} catch (errc) { |
|
|
|
WIKI.logger.warn(errc) |
|
|
|
return next() |
|
|
|