Skip to content

Commit

Permalink
Fix typo in new backwards JWT compat heuristics
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgruenhage authored and simo5 committed Sep 15, 2022
1 parent 54618cc commit 6995447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwcrypto/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _expected_type_heuristics(self, key=None):
if set(self._algs).issubset(jwe_algs + ['RSA1_5']):
self._expected_type = "JWE"
elif set(self._algs).issubset(jws_algs):
self._expected_type = "JES"
self._expected_type = "JWS"
if self._expected_type is None and self._header:
if "enc" in json_decode(self._header):
self._expected_type = "JWE"
Expand Down

0 comments on commit 6995447

Please sign in to comment.