You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases I need the PEM version of my certificate after retrieving it as a JWK. Your library has a nice utility function (rsaPublicKeyToPEM) for doing this, but it's not available as part of the public API. This led to me needing a separate library (rsa-pem-from-mod-exp) just for this. But that library has the same Buffer deprecation issue that this library had at one point.
I'd prefer to depend on Auth0's implementation of this, and avoid having duplicate code in my library. I was hoping you could expose a public utilities interface, perhaps similar to how node-jose exposes utils.
I have to use rsa-pem-from-mod-exp, resulting in duplicate code. I'd prefer to use Auth0's code because I trust Auth0 to be more active in the maintenance of this library since it's a core part of their business.
Additional context
Add any other context or screenshots about the feature request here.
N/A
The text was updated successfully, but these errors were encountered:
@jthomerson you can currently import this through require('jwks-rsa/lib/utils'), but just be aware that it's not supported as part of the SDK public api, so you might want to lock down a specific version if you plan to use it this way.
Describe the problem you'd like to have solved
In some cases I need the PEM version of my certificate after retrieving it as a JWK. Your library has a nice utility function (
rsaPublicKeyToPEM
) for doing this, but it's not available as part of the public API. This led to me needing a separate library (rsa-pem-from-mod-exp) just for this. But that library has the same Buffer deprecation issue that this library had at one point.I'd prefer to depend on Auth0's implementation of this, and avoid having duplicate code in my library. I was hoping you could expose a public utilities interface, perhaps similar to how node-jose exposes utils.
Describe the ideal solution
Alternatives and current work-arounds
I have to use rsa-pem-from-mod-exp, resulting in duplicate code. I'd prefer to use Auth0's code because I trust Auth0 to be more active in the maintenance of this library since it's a core part of their business.
Additional context
N/A
The text was updated successfully, but these errors were encountered: