Closed markcs closed 2 years ago
There is an issue in my example here. You have to write await client.login(…)
. And the logout
method must be rewritten to support the async client. Please use the sync client in the meantime.
I have updated the package and the example. If you reinstall this package you can use the fixed example
@markcs Can I close your issue now?
Apologies for the delay. I'm still getting errors while using your example. This time, I get an error:
File "/usr/lib/python3/dist-packages/jwt/api_jwt.py", line 189, in _validate_aud
raise InvalidAudienceError('Invalid audience')
jwt.exceptions.InvalidAudienceError: Invalid audience
That’s strange. I've tested the example in sync and async mode right now. Inserting my Freeletics username and password and it works without any issues.
Edit: can you try to update jwt?!
I've switched off verify the signature, so the audience verification should be deactivated too. So in theory, this exception should not be raised. I‘m using PyJWT v2.3.0.
I've updated PyJWT and it is working now. Thank you!
Great to hear that and no problem at all! Than I close this issue now!
Hi,
I was trying to run the example code after updating username and password with my freeletics email address and password. However, it does not work
Do you have any ideas?