Skip to content

jws.verify type error #72

@mattsuid

Description

@mattsuid

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions