A cause of this problem can be an outdated package
In my case updating PyJWT on requirements.txt to the latest version fixed the issue
A cause of this problem can be an outdated package
In my case updating PyJWT on requirements.txt to the latest version fixed the issue