New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

serdud/socialite-google-one-tap

Google One Tap provider for Laravel Socialite
129,987 6
Install
composer require serdud/socialite-google-one-tap
Latest Version:v2.3.0
PHP:^7.4 || ^8.0
Laravel:6 – 13
License:MIT
Last Updated:Apr 8, 2026
Links: GitHub  ·  Packagist
Maintainer: serdud

Google One Tap provider for Laravel Socialite

Latest Version on Packagist Total Downloads

Installation & Basic Usage

composer require serdud/socialite-google-one-tap

Add configuration to config/services.php

'google' => [
  'client_id' => env('GOOGLE_CLIENT_ID'),
  'client_secret' => env('GOOGLE_CLIENT_SECRET'),
  'redirect' => env('GOOGLE_REDIRECT_URI')
],

Usage

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 google driver name if you're using version < 2.0.0

Note The token is returned in the credential field

Returned User fields

  • id
  • nickname
  • name
  • email
  • avatar
  • given_name
  • family_name

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

socialiteproviders/google

Google OAuth2 Provider for Laravel Socialite

8,854,621 18
statikbe/laravel-google-authenticate

Google Authentication in Laravel

14,513 7
socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

10,262,528 35
socialiteproviders/okta

Okta OAuth2 Provider for Laravel Socialite

4,750,752 11
socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

2,983,719 42

Version History

Version Released PHP Laravel License
v2.3.0 ^7.4 || ^8.0 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v2.2.0 ^7.4 || ^8.0 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 MIT
v2.1.0 ^7.4 || ^8.0 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 MIT
v2.0.1 ^7.4 || ^8.0 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 MIT
v2.0.0 ^7.4 || ^8.0 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 MIT