我想创建 AccountLinking 来识别用户。
我尝试参考下面的链接。
- https://developers.google.com/actions/identity/account-linking
- 如何在 Actions on Google 上仅使用 Google 帐户对用户进行身份验证?
然后,当我在 Google 模拟器上的操作上尝试帐户链接时。
我得到了这个结果。
{
"response": "It looks like your Test account is not linked yet",
"audioResponse": "//NExAARc...",
"debugInfo": {
"sharedDebugInfo": [
{
"name": "Account Linking Url",
"debugInfo": "https://assistant.google.com/services/auth/handoffs/auth/start?provider=my_project_name_dev&scopes=email+name&return_url=https://www.google.com/"
}
]
}}
然后我将该链接复制并粘贴到我的浏览器中。
但我得到了这个结果。
400. That’s an error.
Error: invalid_scope
Some requested scopes were invalid. {valid=
[https://www.googleapis.com/auth/userinfo.email], invalid=[name]}
我该如何解决?