sumaia / google-onetap-login
A Laravel package for seamless Google One Tap authentication integration
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
pkg:composer/sumaia/google-onetap-login
Requires
- php: ^8.1|^8.2|^8.3
- google/apiclient: ^2.15
- laravel/framework: ^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0|^11.0
This package is not auto-updated.
Last update: 2025-12-31 10:56:45 UTC
README
This repository contains the development workspace for the sumaia/google-onetap-login Laravel package.
Package Overview
The sumaia/google-onetap-login package provides seamless Google One Tap authentication integration for Laravel applications. It allows users to sign in with their Google account using Google's One Tap sign-in feature.
Package Installation
To use this package in your Laravel application, install it via Composer:
composer require sumaia/google-onetap-login
Quick Setup Guide
1. Install the Package
composer require sumaia/google-onetap-login
2. Publish Configuration and Views
# Publish configuration file php artisan vendor:publish --tag=google-onetap-config # Publish views (optional - for customization) php artisan vendor:publish --tag=google-onetap-views
3. Run Migration
php artisan migrate
4. Configure Google OAuth
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable Google+ API
- Create OAuth 2.0 credentials
- Add your domain to authorized origins
5. Update Environment Variables
Add to your .env file:
GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret
6. Update Configuration
Edit config/google-onetap.php:
return [ 'client_id' => env('GOOGLE_CLIENT_ID'), 'client_secret' => env('GOOGLE_CLIENT_SECRET'), // ... other configurations ];
Usage
Once installed, the package automatically registers these routes:
GET /login- Login page with Google One TapPOST /auth/google/callback- Google authentication callbackGET /dashboard- Protected dashboard (requires authentication)POST /logout- Logout functionality
Visit /login to see the Google One Tap authentication in action.
Package Development
This repository serves as the development workspace. The actual package is located in:
packages/sumaia/google-onetap-login/
Development Setup
# Clone this repository git clone <repository-url> cd google-onetap-login # Install dependencies composer install # Run package tests cd packages/sumaia/google-onetap-login composer install vendor/bin/phpunit
Documentation
For detailed documentation, configuration options, and customization guides, see the package's README file: packages/sumaia/google-onetap-login/README.md
License
This package is open-sourced software licensed under the MIT license.