mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
Fixed express-jwt config
no-issue express-jwt expects an array of valid algorithms, not a single algorithm.
This commit is contained in:
parent
f4a060c923
commit
e14188807d
@ -23,7 +23,7 @@ module.exports = {
|
|||||||
requestProperty: 'member',
|
requestProperty: 'member',
|
||||||
audience: siteOrigin,
|
audience: siteOrigin,
|
||||||
issuer,
|
issuer,
|
||||||
algorithm: 'RS512',
|
algorithms: ['RS512'],
|
||||||
secret(req, payload, done) {
|
secret(req, payload, done) {
|
||||||
membersService.api.getPublicConfig().then(({publicKey}) => {
|
membersService.api.getPublicConfig().then(({publicKey}) => {
|
||||||
done(null, publicKey);
|
done(null, publicKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user