更新时间:2023-01-03 18:46:48
Google将身份验证代码 code
返回给您的社交名流时,它只能用于交换访问令牌.重复执行多次将导致错误Code was already redeemed
.
When Google return the Authentication Code code
to your Socialite, it can only be used to exchange to Access Token once. Doing more than once will result in the error Code was already redeemed
.
流应为:
?code=.....
?code
并将其与Google交换以获得用户的访问令牌.每个流只能执行一次.?code=.....
?code
and exchange it with Google to get user's Access Token. This can only be done once per flow.阅读类似的答案: https://***.com/a/32710034/534862