Expand Scopes
This commit is contained in:
parent
d2a2378f4b
commit
bdf4c8b028
1 changed files with 4 additions and 1 deletions
|
|
@ -156,7 +156,10 @@ class LoginController extends BaseController
|
|||
*/
|
||||
public function handleProviderCallback(string $provider)
|
||||
{
|
||||
$socialite_user = Socialite::driver($provider)->stateless()->user();
|
||||
$socialite_user = Socialite::driver($provider)
|
||||
->scope('https://www.googleapis.com/auth/gmail.send','email','profile','openid')
|
||||
->stateless()
|
||||
->user();
|
||||
|
||||
if($user = OAuth::handleAuth($socialite_user, $provider))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue