Skip to content

Commit 904260f

Browse files
authored
fix: set no-store cache control on jwt renew response
1 parent 1238d61 commit 904260f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/core/auth.js

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ module.exports = {
156156
} else {
157157
res.cookie('jwt', newToken.token, { expires: DateTime.utc().plus({ days: 365 }).toJSDate() })
158158
}
159+
160+
// Avoid caching this response
161+
res.set('Cache-Control', 'no-store')
159162
} catch (errc) {
160163
WIKI.logger.warn(errc)
161164
return next()

0 commit comments

Comments
 (0)