python 實現(xiàn)sign with apple 后端服務(wù)時候出現(xiàn)錯誤??
問題:?jwt.decode 導(dǎo)致失敗
通過python -m jwt.help 查看當(dāng)前cryptography 的版本
{
? "cryptography": {
? ? "version": "2.8"
? },
? "implementation": {
? ? "name": "CPython",
? ? "version": "3.7.6"
? },
? "platform": {
? ? "release": "20.2.0",
? ? "system": "Darwin"
? },
? "pyjwt": {
? ? "version": "2.0.1"
? }
}
pyjwt 2 需要??cryptography>=3.3.1,<4.0.0
解決:pip install --upgrade cryptography??
更新到???cryptography-3.4.6