0

我想创建 AccountLinking 来识别用户。

我尝试参考下面的链接。

然后,当我在 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]}

我该如何解决?

4

1 回答 1

1

name范围不是有效范围。(并且https://www.googleapis.com/auth/userinfo.email范围是有效的,但已弃用。)

请参阅https://developers.google.com/identity/protocols/googlescopes#google_sign-in了解您想要的范围,但可能profileemail您正在寻找的范围。

于 2017-06-08T13:04:36.117 回答