Skip to content

Commit

Permalink
Fixed invalid method usage in members authentication
Browse files Browse the repository at this point in the history
no issue

- `getPublicConfig` in members authentication was not called correctly
  • Loading branch information
rishabhgrg committed Jun 27, 2019
1 parent b35269f commit 15a3dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/services/auth/members/index.js
Expand Up @@ -18,14 +18,14 @@ module.exports = {
const {protocol, host} = url.parse(config.get('url'));
const siteOrigin = `${protocol}//${host}`;

UNO_MEMBERINO = membersService.getPublicConfig().then(({issuer}) => jwt({
UNO_MEMBERINO = membersService.api.getPublicConfig().then(({issuer}) => jwt({
credentialsRequired: false,
requestProperty: 'member',
audience: siteOrigin,
issuer,
algorithm: 'RS512',
secret(req, payload, done) {
membersService.getPublicConfig().then(({publicKey}) => {
membersService.api.getPublicConfig().then(({publicKey}) => {
done(null, publicKey);
}).catch(done);
},
Expand Down

0 comments on commit 15a3dac

Please sign in to comment.