mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue