Skip to content

Commit

Permalink
Handle 'scope' for Twitter Oauth1 (#548)
Browse files Browse the repository at this point in the history
* Handle 'scope' for Twitter Oauth1

* Update TwitterProvider.php

Co-authored-by: Diego Sinclair <diego@iconosqua.re>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
3 people committed Aug 5, 2021
1 parent 49e69de commit 9253850
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/One/TwitterProvider.php
Expand Up @@ -32,4 +32,15 @@ public function user()
'avatar_original' => str_replace('_normal', '', $user->imageUrl),
]);
}

/**
* Set the access level the application should request to the user account.
*
* @param string $scope
* @return void
*/
public function scope(string $scope)
{
$this->server->setApplicationScope($scope);
}
}

0 comments on commit 9253850

Please sign in to comment.