laravel / socialite

Laravel wrapper around OAuth 1 & OAuth 2 libraries.
https://laravel.com/docs/socialite
MIT License
5.55k stars 939 forks source link

Unable to add scopes to google login #718

Closed end3r-man closed 5 days ago

end3r-man commented 5 days ago

Socialite Version

5.16

Laravel Version

11.9

PHP Version

8.3

Database Driver & Version

Sqlite3

Description

try to add scope for login, but unable to login every time im getting

Something went wrong Sorry, something went wrong there. Please try again

if i remove the scope its working

Steps To Reproduce

use google driver

Route::get('/auth/google/redirect', function(){
    return Socialite::driver('google')->scopes(['https://www.googleapis.com/auth/adwords'])->redirect();
});