We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f39d7ee commit eff1505Copy full SHA for eff1505
jwt/algorithms.py
@@ -82,7 +82,7 @@ def __init__(self, hash_alg):
82
self.hash_alg = hash_alg
83
84
def prepare_key(self, key):
85
- if not isinstance(key, string_types) and not isinstance(key, text_type):
+ if not isinstance(key, string_types) and not isinstance(key, bytes):
86
raise TypeError('Expecting a string- or bytes-formatted key.')
87
88
if isinstance(key, text_type):
0 commit comments