|
@ -133,7 +133,6 @@ module.exports = { |
|
|
|
|
|
|
|
|
// Revalidate and renew token
|
|
|
// Revalidate and renew token
|
|
|
if (mustRevalidate) { |
|
|
if (mustRevalidate) { |
|
|
console.info('MUST REVALIDATE') |
|
|
|
|
|
const jwtPayload = jwt.decode(securityHelper.extractJWT(req)) |
|
|
const jwtPayload = jwt.decode(securityHelper.extractJWT(req)) |
|
|
try { |
|
|
try { |
|
|
const newToken = await WIKI.models.users.refreshToken(jwtPayload.id) |
|
|
const newToken = await WIKI.models.users.refreshToken(jwtPayload.id) |
|
|