Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decode() got unexpected keyword argument 'verify' #471

Closed
AllenSC2 opened this issue Oct 7, 2021 · 4 comments
Closed

decode() got unexpected keyword argument 'verify' #471

AllenSC2 opened this issue Oct 7, 2021 · 4 comments

Comments

@AllenSC2
Copy link

AllenSC2 commented Oct 7, 2021

I'm not sure why its causing this issue. I followed all the necessary steps and when i try to access my api endpoint it returned a internal server error 500

image

When i remove the Permission Classses IsAuthenticated and the problem goes away and also when i remove verify parameter from backend.py and token.py it also goes away but i don't want to remove the verify parameter because its there to verify the jwt tokens.

This is my API

image

@hugopiso
Copy link

hugopiso commented Oct 7, 2021

Just got the same issue

@lerela
Copy link

lerela commented Oct 7, 2021

This is caused by jpadilla/pyjwt#657 since TokenBackend.decode sends arbitrary kwargs to jwt.decode (which is now forbidden).

(Temporary) fix is to pin PyJWT with pyjwt<2.2 in your requirements.txt.

@hugopiso
Copy link

hugopiso commented Oct 7, 2021

Thx it works, I was just reading this opened issue

@AllenSC2
Copy link
Author

AllenSC2 commented Oct 7, 2021

Thanks it works.

@AllenSC2 AllenSC2 closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants