cbrooker / MMM-Todoist

This is an extension for the MagicMirror2 platform. It will display your Todoist todos on your MagicMirror.
MIT License
151 stars 58 forks source link

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

Closed emanuele-albini closed 1 year ago

emanuele-albini commented 1 year ago

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 commented 1 year ago

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