Fixed express-jwt config

no-issue

express-jwt expects an array of valid algorithms, not a single algorithm.
This commit is contained in:
Fabien 'egg' O'Carroll 2020-07-08 14:46:46 +02:00
parent f4a060c923
commit e14188807d

View File

@ -23,7 +23,7 @@ module.exports = {
requestProperty: 'member',
audience: siteOrigin,
issuer,
algorithm: 'RS512',
algorithms: ['RS512'],
secret(req, payload, done) {
membersService.api.getPublicConfig().then(({publicKey}) => {
done(null, publicKey);