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

AuthResult.from_dict fails to serialise the response in get_auth_token #110

Open
MaxFrax opened this issue Sep 8, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@MaxFrax
Copy link

MaxFrax commented Sep 8, 2023

Bug description

Performing the third step of the OAuth procedure by calling get_auth_token returns the error KeyError: 'state'

The response contains only the Bearer token but a state is expected by AuthResult.from_dict

Expected behaviour

The AuthResponse should correctly be serialized

Is reproducible

Yes

Version information:

  • Package version: todoist-api-python==2.1.3
  • Python version: Python 3.11.5
@MaxFrax MaxFrax added the bug Something isn't working label Sep 8, 2023
@MaxFrax
Copy link
Author

MaxFrax commented Sep 10, 2023

I made and tested a fix. Here's the PR #111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant