Giter Site home page Giter Site logo

Comments (9)

hoIIer avatar hoIIer commented on July 28, 2024

! just ran into this and was wondering what was going on... glad to know its documented

from django-rest-framework-jwt.

jpadilla avatar jpadilla commented on July 28, 2024

Hey @caffodian @Epicowl sorry about this, I just released that new version of PyJWT and totally screwed up there. I'm going to release a new version of PyJWT tonight that will fix the signature.

from django-rest-framework-jwt.

jpadilla avatar jpadilla commented on July 28, 2024

Actually by checking these PRs, I think where I had screwed up was in this project by using positional arguments. But still should have probably noted this for PyJWT.

from django-rest-framework-jwt.

vforgione avatar vforgione commented on July 28, 2024

Yeah. I linked to the new method signatures in my PR. Just throwing the argument names on jwt_decode_handler for the last two positionals fixes it.

from django-rest-framework-jwt.

caffodian avatar caffodian commented on July 28, 2024

I'm kind of a fan of just fixing it over here and maybe tightening some of the requirements.txt versioning if think it'll change more in the future.

releasing a PyJWT version to revert it would only really fix it for anyone that has drf-jwt frozen at 1.0.1, doesn't have PyJWT explicitly defined, and won't come here to check the issues ;)

from django-rest-framework-jwt.

jpadilla avatar jpadilla commented on July 28, 2024

@caffodian good idea. Thoughts on locking down the requirements for PyJWT at 0.3.0 for now?

from django-rest-framework-jwt.

caffodian avatar caffodian commented on July 28, 2024

@jpadilla Perhaps lock it at >=0.3,<0.4 , and just make sure any breaking changes go into a 0.4 on the PyJWT side? It'll let you seamlessly put in other minor fixes that this package can benefit from in the meantime (0.3.1 etc)

from django-rest-framework-jwt.

jpadilla avatar jpadilla commented on July 28, 2024

Just released 1.0.2 and already should be published on PyPI.

from django-rest-framework-jwt.

vforgione avatar vforgione commented on July 28, 2024

Everything looks good. Thanks for jumping on this so quickly!

from django-rest-framework-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.