Skip to content

Commit

Permalink
Update SlackProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Jul 14, 2023
1 parent edd06ed commit 9f67d99
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Two/SlackProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ class SlackProvider extends AbstractProvider
*/
protected $scopeKey = 'user_scope';

/**
* Indicate that the requested token should be for a bot user.
*
* @return $this
*/
public function asBotUser()
{
$this->scopeKey = 'scope';

return $this;
}

/**
* {@inheritdoc}
*/
Expand Down Expand Up @@ -63,18 +75,6 @@ protected function mapUserToObject(array $user)
]);
}

/**
* Set the key used for scopes in the request.
*
* @return $this
*/
public function asBotUser()
{
$this->scopeKey = 'scope';

return $this;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 9f67d99

Please sign in to comment.