如果您使用的是JWTAuth https://github.com/tymondesigns/jwt-auth,它还支持Socialite登录.在Socialite返回经过身份验证的用户后,您可以通过电子邮件查找数据库或创建(如果不存在).然后你可以使用.
$token = JWTAuth::fromUser($user)更多的讨论可以在这个链接上找到https://laracasts.com/discuss/channels/laravel/how-would-one-use-jwt-json-web-tokens-with-laravel-socialite
| 归档时间: |
|
| 查看次数: |
2805 次 |
| 最近记录: |