Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'str' object has no attribute 'decode' #89

Open
sombek opened this issue Aug 24, 2022 · 2 comments
Open

AttributeError: 'str' object has no attribute 'decode' #89

sombek opened this issue Aug 24, 2022 · 2 comments

Comments

@sombek
Copy link

sombek commented Aug 24, 2022

I am using pyjwt version 2.4.0
and I think it's conflicting and showing this error:
AttributeError: 'str' object has no attribute 'decode'
When I try to use this:

access_token = self.authorize.create_access_token(subject=body.phone)
refresh_token = self.authorize.create_refresh_token(subject=body.phone)

When I down grade pyjwt to 1.7.0 it works fine.

@BaLaLaLs
Copy link

same problem

@mmasztalerczuk
Copy link

Hi,
I have made a fork of this repo and this issue is fixed in 0.1.7:
https://pypi.org/project/fastapi-another-jwt-auth/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants