docs(readme): key.getPublicKey() with jwks-rsa
This commit is contained in:
parent
c1a9213a52
commit
959652b3d3
@ -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()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user