8000 PyJWT >= 1.5.1 exception fixed (#377) · SituProbability/twilio-python@9321baf · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 9321baf

Browse files
sharkykhjmctwilio
authored andcommitted
PyJWT >= 1.5.1 exception fixed (twilio#377)
* Remove PyJWT versi 8000 on restriction * PyJWT >= 1.5.1 issue traced
1 parent f6af212 commit 9321baf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
install_requires = [
2626
"six",
2727
"pytz",
28-
"PyJWT >= 1.4.2, <1.5.1",
28+
"PyJWT >= 1.4.2",
2929
],
3030
extras_require={
3131
':python_version<"3.0"': [

twilio/jwt/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def from_jwt(cls, jwt, key=''):
134134
verify = True if key else False
135135

136136
try:
137-
payload = jwt_lib.decode(bytes(jwt), key, verify=verify, options={
138-
'verify_signature': True,
137+
payload = jwt_lib.decode(bytes(jwt), key, options={
138+
'verify_signature': verify,
139139
'verify_exp': True,
140140
'verify_nbf': True,
141141
})

0 commit comments

Comments
 (0)
0