我在我的 list 文件中设置了一个与我在 google api 控制台中创建的匹配的客户端 ID。
我将其创建为应用程序客户端 ID。
list .json:
"oauth2": {
"client_id": "mysecretclientID",
"scopes": [
"https://www.googleapis.com/auth/drive"
]
}
我正在使用以下代码在我的 chrome 应用程序的开发控制台中对此进行测试:
chrome.identity.getAuthToken({interactive: false}, function(token){console.log(token);})
这个错误是什么意思?
最佳答案
我需要在设置客户端 ID 时选择 chrome 应用程序,并且我需要在本地测试时添加我的应用程序 ID,当启用开发者模式时,可以在 chrome://extensions 中找到它。
关于javascript - Chrome 应用 "Bad client id: UNSUPPORTED",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30349890/