Skip to content

Commit

Permalink
fix: slack token missing bearer prefix (#84)
Browse files Browse the repository at this point in the history
Authorization failed due to incorrectly formatted header
  • Loading branch information
SimeonC committed Jan 12, 2022
1 parent 89ee876 commit 1d410f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = async (
method: 'post',
headers: {
'Content-Type': 'application/json',
Authorization: slackToken
Authorization: `Bearer ${slackToken}`
},
body: JSON.stringify(message)
})
Expand Down

0 comments on commit 1d410f7

Please sign in to comment.