Git Product home page Git Product logo

Comments (2)

abatishchev avatar abatishchev commented on May 25, 2024

Hi,
Thanks for using the library and reporting back the issues you're seeing.
I would say this behavior is by design. Let me explain.
The number of dependencies needed to decide just a header is much small than to decide a payload. What means that the user would need to specify those dependencies anyway, even if was going to decide a header only.
In other words, an instance of the builder that was created for decoding only a header can't be reused.
However, I see an option for improvement: the order of the methods being called should not matter.
Would you please submit a PR that would check for the presence of the necessary dependencies and initialize the decoder accusingly?

from jwt.

s-shin avatar s-shin commented on May 25, 2024

Sorry, but for various reasons, I will not be using this library.
Therefore, my motivation to contribute becomes low.
However, I am putting a patch here as a possible fix (not a PR, as it is not of mergeable quality) to help anyone who wants to work on this issue in the future.

main...s-shin:dotnet-jwt:make_decode_callable_after_decode_header

from jwt.

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.