Change Passport allowed JWT algos

master
aljazmedic 2022-11-18 17:19:52 +01:00
parent 9e5aa72a7b
commit 00798a5247
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ const cookieExtractor = function (req) {
const opts = {};
opts.jwtFromRequest = cookieExtractor;
opts.secretOrKey = PUB_KEY;
opts.algorithms = ['RS256', 'ES256', 'HS256'];
opts.algorithms = ['RS256'];
//opts.issuer = 'localhost';
//opts.audience = 'localhost';