gpt4 book ai didi

php - Laravel5.7 php 中的 Google 身份验证并出现 “Missing required parameter: code” 错误 400

转载 作者:行者123 更新时间:2023-12-03 21:18:24 26 4
gpt4 key购买 nike

GuzzleHttp \ Exception \ ClientException (400) Client error: POST https://accounts.google.com/o/oauth2/token resulted in a 400 Bad Request response: { "error": "invalid_request", "error_description": "Missing required parameter: code" }

最佳答案


供应商\laravel\socialite\src\Two\GoogleProvider.php
打开 GoogleProvider.php
并从 $scopes 中删除配置文件
protected $scopes = [
'openid',
'email',
];
并检查您的代码现在正在运行。

关于php - Laravel5.7 php 中的 Google 身份验证并出现 “Missing required parameter: code” 错误 400,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53081902/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com