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

前端 未结 7 802
伪装坚强ぢ
伪装坚强ぢ 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:47

    After trying several workarounds, I created a new Python notebook with the same code and it appears to be working. I am not sure what was the issue before.

提交回复
热议问题