phhung1901/google_one_tap

Login with google one tap/google popup login
20,722 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

Latest Version on Packagist Total Downloads

google-one-tap

Login with google one tap/google popup login for Laravel

✨ Now supports Laravel 12!

title


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

midnite81/timekeeper

A series of scopes for Laravel Models to do with Time Management.

3,186 1
midnite81/prowl

A Laravel integration of Prowl

551 0
salyangoz/pazaryeri-parasut

Pazaryerlerini(N11,Gittigidiyor ve Hepsiburada) Paraşüt - Web Tabanlı Fatura ve...

158 47
keal/laravel-sms

easy to send sms

79 1