Code Monkey home page Code Monkey logo

Comments (4)

xbassols avatar xbassols commented on July 23, 2024 1

Thanks to your input I can confirm it is a dependency problem, in my case:
mailgun-js -> socks-proxy-agent -> agent-base (this last package is who is causing the problem)

from jose.

panva avatar panva commented on July 23, 2024

I am absolutely certain this is the same issue as in panva/node-openid-client#320, this traces back to sindresorhus/got#1515 which traces back to a number of libraries that are possibly in your dependency tree that are monkey patching node's http/https clients. So in summary, not an issue with this library. The way node's API is used is in line with its documentation.

Libraries identified to this so far (note they may be intrinsic dependencies of yours)

I will recommend you to remove all other dependencies and keep on adding them one by one until the culprit shows itself. You wouldn't want a library messing with node's stdlib in your stack now, would you?

from jose.

panva avatar panva commented on July 23, 2024
> const jwks = createRemoteJWKSet(new URL('https://appleid.apple.com/auth/keys'));
> jwks({ kid: 'eXaunmL', alg: 'RS256' }).then(console.log)
Promise { <pending> }
> PublicKeyObject { [Symbol(kKeyType)]: 'public' }

works as intended when not affected by the described above issue that's caused by one of your dependencies.

from jose.

panva avatar panva commented on July 23, 2024

Nevertheless, if all it takes to bypass that issue is to pass url.href, i'll push a change.

from jose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.