You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "./api/routes.py", line 38, in login
token = login_manager.create_access_token(data=data, expires_delta=timedelta(days=30))
File "/path/to/my/.venv/lib/python3.8/site-packages/fastapi_login/fastapi_login.py", line 165, in create_access_token
return encoded_jwt.decode()
AttributeError: 'str' object has no attribute 'decode'
It looks like that line of code is assuming the
encoded_jwt
is bytes, but it looks like that method returns a string.My Pipfile.lock resolved pyjwt to version
==2.0.0
, I suppose this is a breaking change from 1.7.1, and I should restrict my Pipfile accordingly?The text was updated successfully, but these errors were encountered: