diff --git a/jose/jwt.py b/jose/jwt.py index b364b4b..07b8301 100644 --- a/jose/jwt.py +++ b/jose/jwt.py @@ -141,6 +141,9 @@ def decode(token, key, algorithms=None, options=None, audience=None, issuer=None verify_signature = defaults.get("verify_signature", True) + if algorithms is None: + algorithms = ALGORITHMS.ALL + try: payload = jws.verify(token, key, algorithms, verify=verify_signature) except JWSError as e: