1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00

Fix AM)-signing script after changes in jwt

jwt.encode() now returns string type.

Reference:
- https://pyjwt.readthedocs.io/en/stable/changelog.html#improve-typings
This commit is contained in:
Raymond Hill 2022-11-14 10:31:04 -05:00
parent 3c6fddf697
commit b778f9dac2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@
import datetime
import json
import jwt
import os
import re
import requests

View File

@ -190,7 +190,7 @@ def get_jwt_auth():
'iat': datetime.datetime.utcnow(),
'exp': datetime.datetime.utcnow() + datetime.timedelta(seconds=15),
}
return 'JWT ' + jwt.encode(jwt_payload, amo_secret).decode()
return 'JWT ' + jwt.encode(jwt_payload, amo_secret)
print('Ask AMO to sign self-hosted xpi package...')
with open(unsigned_xpi_filepath, 'rb') as f:

View File

@ -2,7 +2,6 @@
import datetime
import json
import jwt
import os
import re
import requests