mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-01-25 02:08:24 +00:00
Merge 8473b20941 into 48e1a72ef3
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user