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({ authorize({
secret: async (decodedToken) => { secret: async (decodedToken) => {
const key = await client.getSigningKeyAsync(decodedToken.header.kid) const key = await client.getSigningKeyAsync(decodedToken.header.kid)
return key.rsaPublicKey return key.getPublicKey()
} }
}) })
) )