Giter VIP home page Giter VIP logo

Comments (7)

Keats avatar Keats commented on August 28, 2024 1

Looks like I forgot to update the docs :(

from jsonwebtoken.

Keats avatar Keats commented on August 28, 2024

Although it is interesting in terms of UX what should be done there. We want good, secure defaults for the decoding so it should probably validate those by default if possible, meaning the api of v4 was better despite the buggy implementation (#51).

I'll think about it over the next couple of days but it looks like this needs to be re-done and it is a breaking change :(
I'll welcome any input on it, here are the things I would also like to change:

Probably a few other things but it's already a good start.

from jsonwebtoken.

Keats avatar Keats commented on August 28, 2024

Ah I also don't remember why Validation:algorithm is a vec sadly...

from jsonwebtoken.

PSeitz avatar PSeitz commented on August 28, 2024

There may be cases where there are multiple validation algorithms are used, but it's only secure if they are paired with their keys.

from jsonwebtoken.

Keats avatar Keats commented on August 28, 2024

Yes that's in the spec but I thought I changed that before, weird. Will be fixed in the next version

from jsonwebtoken.

Keats avatar Keats commented on August 28, 2024

iat validation removed for now, will open another issue to discuss the rest

from jsonwebtoken.

Keats avatar Keats commented on August 28, 2024

I think the validation issues are fixed in v6 so closing it

from jsonwebtoken.

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.