From 9253850f05668373749291537a7dbf17123f6af7 Mon Sep 17 00:00:00 2001 From: Diegs <47917342+Diegslapasteque@users.noreply.github.com> Date: Thu, 5 Aug 2021 15:48:05 +0200 Subject: [PATCH] Handle 'scope' for Twitter Oauth1 (#548) * Handle 'scope' for Twitter Oauth1 * Update TwitterProvider.php Co-authored-by: Diego Sinclair Co-authored-by: Taylor Otwell --- src/One/TwitterProvider.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/One/TwitterProvider.php b/src/One/TwitterProvider.php index fff88f0b..1fe2e17f 100644 --- a/src/One/TwitterProvider.php +++ b/src/One/TwitterProvider.php @@ -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); + } }