Skip to content

Commit

Permalink
Moved access token to header as the new API expects
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-albini committed Dec 26, 2022
1 parent 31036c0 commit 38d2319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 38d2319

Please sign in to comment.