docs(readme): key.getPublicKey() with jwks-rsa

This commit is contained in:
divlo 2021-01-28 18:53:56 +01:00
parent c1a9213a52
commit 959652b3d3

View File

@ -75,7 +75,7 @@ io.use(
authorize({
secret: async (decodedToken) => {
const key = await client.getSigningKeyAsync(decodedToken.header.kid)
return key.rsaPublicKey
return key.getPublicKey()
}
})
)