From 38d23194bffc3143d73dcd56290c5a818cdbc63c Mon Sep 17 00:00:00 2001 From: Emanuele Albini Date: Mon, 26 Dec 2022 20:51:54 +0000 Subject: [PATCH] Moved access token to header as the new API expects --- node_helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_helper.js b/node_helper.js index 36590ce..4d189d8 100644 --- a/node_helper.js +++ b/node_helper.js @@ -35,10 +35,10 @@ module.exports = NodeHelper.create({ method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", - "cache-control": "no-cache" + "cache-control": "no-cache", + "Authorization": "Bearer " + acessCode }, form: { - token: self.config.accessToken, sync_token: "*", resource_types: self.config.todoistResourceType }