Skip to content

Commit 7c5702e

Browse files
committed
fix broken import
1 parent 07ac837 commit 7c5702e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

symphony/bdk/core/auth/jwt_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""
33
import datetime
44

5-
from jwt import PyJWT
5+
from jwt import PyJWT, DecodeError, ExpiredSignatureError
66
from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
77
from cryptography.x509 import load_pem_x509_certificate
88

@@ -58,7 +58,7 @@ def validate_jwt(jwt_token: str, certificate: str, allowed_audience: str) -> dic
5858
try:
5959
return jwt.decode(jwt_token, _parse_public_key_from_x509_cert(certificate),
6060
algorithms=[JWT_ENCRYPTION_ALGORITHM], audience=allowed_audience)
61-
except (jwt.DecodeError, jwt.ExpiredSignatureError) as exc:
61+
except (DecodeError, ExpiredSignatureError) as exc:
6262
raise AuthInitializationError("Unable to validate the jwt") from exc
6363

6464

0 commit comments

Comments
 (0)