使用了PyJWT 2.0包导致的,直接pip3 install PyJWT==1.7.1就好了
另外2.0版本令牌作为字符串而不是字节字符串返回,也会出现AttributeError: 'str' object has no attribute 'decode'报错
PyJWT版本变更:https://pyjwt.readthedocs.io/en/latest/changelog.html#v2-0-0
jwt.exceptions.DecodeError: It is required that you pass in a value for the “algorithms” argument wh
最新推荐文章于 2022-03-18 15:05:40 发布