This commit is contained in:
Markus Frindt
2024-06-17 09:49:25 +02:00
committed by GitHub

View File

@@ -31,6 +31,11 @@ function makeStrategy(logger) {
logger.info('jwt invalidated after logout');
return done(null, false);
}
/* Reject the request if we receive an old token */
if (result !== token) {
logger.info('jwt was invalidated after login by another session');
return done(null, false);
}
} catch (error) {
debug(err);
logger.info({err}, 'Error checking redis for jwt');