хочу сделать что-то похожее в ржавчине с ракетой
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']
});