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

feat: resolve bun/deno compat issues #374

Closed panva closed 1 year ago

panva commented 1 year ago

Description

Since compatibility modes are becoming more and more popular it is inevitable that jwks-rsa is used in bun/deno sooner or later (actually, already might be). Because of how these runtimes fail to recognize CJS and treat its require calls to use the dependency's require package.json target we can't depend on using a node-runtime ignored algorithm argument and have to provide an actual value.

References

Testing

This only stands to improve non-officially supported runtimes for this module, it does not affect how the module behaves under node.js runtime