index.js
async function _verifyToken (jwksClient, token) {
  const decoded = jwt.decode(token, { complete: true })
  const signingKey = await jwksClient.getSigningKeyAsync(decoded.header.kid)
  return jwt.verifyAsync(token, signingKey.publicKey || signingKey.rsaPublicKey)
}
async function _verifyToken (jwksClient, token) {
  const decoded = jwt.decode(token, { complete: true })
  const signingKey = await jwksClient.getSigningKeyAsync(decoded.header.kid)
  return jwt.verifyAsync(token, signingKey.publicKey || signingKey.rsaPublicKey)
}
async function _verifyToken ( jwksClient , token ) { const decoded = jwt . decode ( token , { complete : true } ) const signingKey = await jwksClient . getSigningKeyAsync ( decoded . header . kid ) return jwt . verifyAsync ( token , signingKey . publicKey || signingKey . rsaPublicKey ) }
Fetch the public info of signing key from the directory that acts as jwks provider
Fetch the public info of signing key from the directory that acts as jwks provider