Chrome 应用程序 "Bad client id: UNSUPPORTED"

Chrome app "Bad client id: UNSUPPORTED"

我在我的清单文件中设置了一个客户端 ID,它与我在 google api 控制台中创建的客户端 ID 相匹配。

我将其创建为应用程序客户端 ID。

Manifest.json:

"oauth2": {
    "client_id": "mysecretclientID",
    "scopes": [
      "https://www.googleapis.com/auth/drive"
    ]
}

我正在使用以下代码在我的 chrome 应用程序的开发控制台中对此进行测试:

chrome.identity.getAuthToken({interactive: false}, function(token){console.log(token);})

这个错误是什么意思?

我在设置客户端 ID 时需要 select chrome 应用程序,我需要在本地测试时添加我的应用程序 ID,可以在 chrome 中找到:/ /启用开发者模式时的扩展。