JWT: 'module' object has no attribute 'encode'

前端 未结 7 764
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 23:18

I am getting a Module not found error when using jwt. Here is how I declared it:

def create_jwt_token():
    payload = {
        \"iat\": int(time.time(         


        
相关标签:
7条回答
  • 2021-02-04 23:53

    Use PyJWT instead. I faced the same issue with jwt so I uninstalled it and used PyJWT instead.

    0 讨论(0)
提交回复
热议问题