【发布时间】:2023-03-09 11:16:01
【问题描述】:
使用 google api 的 oauth 服务时如何预填账号。它要求我输入电子邮件地址。我安装了其他已为我选择了 gmail 帐户的扩展程序。这是我启动它时的样子:
var opts = {
interactive: true,
url: `https://accounts.google.com/o/oauth2/v2/auth?client_id=${clientId}&scope=${scopeParam}&redirect_uri=${redirectUrl}&response_type=token`
};
chrome.identity.launchWebAuthFlow(opts, authUrl => {...});
【问题讨论】: