Could not deserialize key data on decoding JWT python

前端 未结 7 1023
日久生厌
日久生厌 2021-01-02 07:51

I am using pyjwt library for decoding the JWT token. I got this error when I am decoding. The code was given in the documantation.

import jwt

encoded_jwt=\'         


        
7条回答
  •  鱼传尺愫
    2021-01-02 08:21

    If you get this error double check your public key is exactly right, new lines are important.

    key = '''-----BEGIN PUBLIC KEY-----
    
    -----END PUBLIC KEY-----'''

提交回复
热议问题