-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Labels
Description
When passing a jwt and key to jws.verify I am getting a type error stating that a bytes like object is required. I can verify the jwt with the key successfully on jwt.io, and am passing byte strings as my arguments.
This:
print(type(jwt))
print(type(key))
jws.verify(jwt, key, algorithms=['HS256'])
Results in this:
<class 'bytes'>
<class 'bytes'>
TypeError, a bytes-like object is required, not 'str'