composer require serdud/socialite-google-one-tap
'google' => [
'client_id' => env('GOOGLE_CLIENT_ID'),
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
'redirect' => env('GOOGLE_REDIRECT_URI')
],
You should now be able to use the provider like you would regularly use Socialite:
return Socialite::driver('google-one-tap')->stateless()->userFromToken($token);
Note Use
Note The token is returned in the
credential
field
id
nickname
name
email
avatar
given_name
family_name
The MIT License (MIT). Please see License File for more information.