auth0 / node-jwks-rsa

A library to retrieve RSA public keys from a JWKS (JSON Web Key Set) endpoint.
MIT License
836 stars 236 forks source link

fix: express-jwt types #412

Closed jfromaniello closed 4 months ago

jfromaniello commented 4 months ago

Description

This is the correct type given that the returned callback can handle both configuration of arguments.

References

This is a mistake I made in https://github.com/auth0/node-jwks-rsa/pull/297 and will definitely help with the situation at https://github.com/auth0/express-jwt/issues/288

Testing

Checklist

Sti2nd commented 4 months ago

Looking forward to this being published to NPM registry 👍🏿 Good job!