Skip to content

Commit

Permalink
Fixed invalid_auth error (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwozeniak committed Mar 26, 2021
1 parent 48819ad commit 2b781c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ protected function getUserByToken($token)
{
try {
$response = $this->getHttpClient()->get(
'https://slack.com/api/users.identity?token='.$token
'https://slack.com/api/users.identity',
[
'headers' => [
'Authorization' => 'Bearer '.$token,
],
]
);
} catch (RequestException $exception) {
// Getting user informations requires the "identity.*" scopes, however we might want to not add them to the
Expand Down

0 comments on commit 2b781c9

Please sign in to comment.