我想用火箭做些类似的事情
const auth = jwt({
secret: jwksClient.expressJwtSecret({
cache: true,
rateLimit: true,
jwksRequestsPerMinute: 2,
jwksUri: `${issuer}/.well-known/openid-configuration/jwks`
}),
// validate the audience & issuer from received token vs JWKS endpoint
audience: 'sinanbir.com.auth',
issuer: issuer,
algorithms: ['RS256']
});