[Django]-Jwt.decode() got an unexpected keyword argument 'verify'

23👍

Fixed the issue with PyJWT==2.1.0 and djangorestframework-simplejwt==4.8.0 in the requirements.txt:

PyJWT==2.1.0
djangorestframework-simplejwt==4.8.0

It may be noted that PyJWT 2.2.0 (Released: Oct 7, 2021) is causing the error. So pinning PyJWT<2.2 or alternatively PyJWT==2.1.0 in personal projects is a workaround for now, but ideally this would be either pinned appropriately here:

https://github.com/jazzband/djangorestframework-simplejwt/blob/master/setup.py#L59

or handled in source code.

13👍

The problem is in pyJWT version. Try to downgrade it to 2.0.1.

2👍

The issue is coming from new release 2.2.0 (see https://github.com/jpadilla/pyjwt/issues/698)

Downgrading to pyjwt==2.1.0 will fix the issue.

Leave a comment