serdud/socialite-google-one-tap 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist Total Downloads

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 google driver name if you're using version < 2.0.0

Note The token is returned in the credential field

Returned User fields

  • id
  • nickname
  • name
  • email
  • avatar
  • given_name
  • family_name

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 51.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-03