phhung1901/google_one_tap
Login with google one tap/google popup login
21,190
28
| Install | |
|---|---|
composer require phhung1901/google_one_tap |
|
| Latest Version: | v12.0.0 |
| PHP: | >=8.2 |
| License: | MIT |
| Last Updated: | Dec 7, 2025 |
| Links: | GitHub · Packagist |
Maintainer: phhung1901
google-one-tap
Login with google one tap/google popup login for Laravel
✨ Now supports Laravel 12!

Installation
requires
- php: >=8.2
- laravel/framework: ^9.0|^10.0|^11.0|^12.0
composer require phhung1901/google_one_tap
Config
Add configuration to config/services.php
'google' => [
'client_id' => env('GOOGLE_CLIENT_ID'),
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
'redirect' => env('GOOGLE_URL')
],
Usage
1. Added to scripts
<script src="https://accounts.google.com/gsi/client" async="" defer=""></script>
2. Next, you must publish the component
Add to providers config/app.php
\GoogleOneTap\Services\GoogleOneTapServiceProvider::class,
php artisan vendor:publish --tag=google_one_tap
Now, add the component wherever you want google_one_tap to be used.
<x-google_one_tap.onload/>
Config googe-one-tap.php you can add customizations
3. Returned User fields
$token = GoogleOneTapService::getToken($request);
return Socialite::driver('google-one-tap')->stateless()->userFromToken($token)
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v12.0.0 | >=8.2 | ^9.0| | MIT | |
| v2.0.0 | >=8.1 | ^9.0 | | MIT | |
| v1.2.1 | >=8.1 | ^9.0 | | MIT | |
| v1.1.4 | >=8.1 | ^9.0 | | MIT | |
| v1.1.3 | >=8.1 | ^9.0 | | MIT | |
| v1.1.2 | >=8.1 | ^9.0 | | MIT | |
| v1.1 | >=8.1 | ^9.0 | | MIT | |
| v0.0.1 | >=8.1 | ^9.0 | | MIT |
Pre-releases (1)
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.2.beta | >=8.1 | ^9.0 | | MIT |