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

Moved access token to header as the new API expects #107

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

emanuele-albini
Copy link
Contributor

This solves the 403 error returned by the API.

{
    "error":"Invalid CSRF token",
    "error_code":410,
    "error_extra":{"access_type":"web_session","event_id":"private","retry_after":3},
    "error_tag":"AUTH_INVALID_CSRF_TOKEN",
    "http_code":403
}

As per new API documentation the access token must be passed in the header (see https://developer.todoist.com/sync/v9/#authorization)

#106

@jsmith432
Copy link

Thanks for these commits, I made these changes manually, and it solved my issue.

@cbrooker cbrooker merged commit f207b20 into cbrooker:master Dec 28, 2022
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

Successfully merging this pull request may close these issues.

3 participants