From 5dbf5c685376573284448519dfaa1ad6dcbd2f05 Mon Sep 17 00:00:00 2001 From: Luciano Balmaceda Date: Mon, 20 Jan 2020 14:48:08 -0300 Subject: [PATCH] update README.md file --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5bf7787..f9e0d85 100644 --- a/README.md +++ b/README.md @@ -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 }); @@ -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 }); @@ -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 });