Skip to content

Commit

Permalink
update README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Jan 20, 2020
1 parent 2a1da8b commit 5dbf5c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const client = jwksClient({

const kid = 'RkI5MjI5OUY5ODc1N0Q4QzM0OUYzNkVGMTJDOUEzQkFCOTU3NjE2Rg';
client.getSigningKey(kid, (err, key) => {
const signingKey = key.publicKey || key.rsaPublicKey;
const signingKey = key.getPublicKey();

// Now I can use this to configure my Express or Hapi middleware
});
Expand Down Expand Up @@ -53,7 +53,7 @@ const client = jwksClient({

const kid = 'RkI5MjI5OUY5ODc1N0Q4QzM0OUYzNkVGMTJDOUEzQkFCOTU3NjE2Rg';
client.getSigningKey(kid, (err, key) => {
const signingKey = key.publicKey || key.rsaPublicKey;
const signingKey = key.getPublicKey();

// Now I can use this to configure my Express or Hapi middleware
});
Expand All @@ -75,7 +75,7 @@ const client = jwksClient({

const kid = 'RkI5MjI5OUY5ODc1N0Q4QzM0OUYzNkVGMTJDOUEzQkFCOTU3NjE2Rg';
client.getSigningKey(kid, (err, key) => {
const signingKey = key.publicKey || key.rsaPublicKey;
const signingKey = key.getPublicKey();

// Now I can use this to configure my Express or Hapi middleware
});
Expand Down

0 comments on commit 5dbf5c6

Please sign in to comment.