2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

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()
}
})
)