python3 jwt.decode() 报错 InvalidSignatureError('Signature verification failed',)
import jwt
data = jwt.decode(encoded_jwt, secret_key, algorithm='HS256')
解决:jwt.decode(jwt, key) 的前两个参数 token、秘钥都必须是字符串类型
encoded_jwt : string secret_key :sting
python3 jwt.decode() 报错 InvalidSignatureError('Signature verification failed',)
import jwt
data = jwt.decode(encoded_jwt, secret_key, algorithm='HS256')
解决:jwt.decode(jwt, key) 的前两个参数 token、秘钥都必须是字符串类型
encoded_jwt : string secret_key :sting