Closed jamietsao closed 3 years ago
An issue (https://github.com/jamietsao/slack-multi-channel-invite/issues/6) was reported that invalid_auth errors were being returned. After lots of head scratching, I finally found that supplying the api token via query param suddenly stopped working (even though their docs say it's a valid way: https://api.slack.com/authentication/oauth-v2#using)
invalid_auth
Updated the users.lookupByEmail and conversations.list calls to supply api token via a header (the conversations.invite call was already being done this way).
users.lookupByEmail
conversations.list
conversations.invite
An issue (https://github.com/jamietsao/slack-multi-channel-invite/issues/6) was reported that
invalid_auth
errors were being returned. After lots of head scratching, I finally found that supplying the api token via query param suddenly stopped working (even though their docs say it's a valid way: https://api.slack.com/authentication/oauth-v2#using)Updated the
users.lookupByEmail
andconversations.list
calls to supply api token via a header (theconversations.invite
call was already being done this way).