serdud/socialite-google-one-tap
Google One Tap provider for Laravel Socialite
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
Note The token is returned in the
credentialfield
Returned User fields
idnicknamenameemailavatargiven_namefamily_name
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.3.0 | ^7.4 | | ^6.0 | | MIT | |
| v2.2.0 | ^7.4 | | ^6.0 | | MIT | |
| v2.1.0 | ^7.4 | | ^6.0 | | MIT | |
| v2.0.1 | ^7.4 | | ^6.0 | | MIT | |
| v2.0.0 | ^7.4 | | ^6.0 | | MIT | |
| v1.2.0 | ^7.4 | | ^6.0 | | MIT | |
| v1.1.1 | ^7.4 | | ^6.0 | | MIT | |
| v1.1 | ^7.4 | | ^6.0 | | MIT | |
| v1.0 | ^7.4 | | ^6.0 | | MIT |