serdud/socialite-google-one-tap
最新稳定版本:v2.2.0
Composer 安装命令:
composer require serdud/socialite-google-one-tap
包简介
Google One Tap provider for Laravel Socialite
README 文档
README
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.
统计信息
- 总下载量: 51.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-03