gpt4 book ai didi

oauth-2.0 - 什么是 id_token 谷歌 oauth

转载 作者:行者123 更新时间:2023-12-03 06:00:21 30 4
gpt4 key购买 nike

当我尝试对 googleapi 执行 oauth2 时,我刚刚得到以下结果。只有一件事:我在 documentation 中找不到 id_token 的用途。 .

{
"access_token": "xxxx",
"token_type": "Bearer",
"expires_in": 3600,
"id_token": "veryverylongstring",
"refresh_token": "abcdefg"
}

最佳答案

id_token 是 JSON Web token (JWT)。如果对其进行解码,您将看到它包含多个断言,包括用户的 ID。请参阅this answer了解更多详情。

关于oauth-2.0 - 什么是 id_token 谷歌 oauth,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13875366/

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