OAuth2请求失败:更改密码后凭据无效(Chrome扩展程序)

时间:2015-02-27 00:25:15

标签: javascript google-chrome

我正在开发Chrome扩展程序。我正在使用以下代码获得oAuth令牌,但是在我今天更改了我的gmail密码并在我的帐户上启用2因素身份验证后,我得到:运行identity.getAuthToken时未检查runtime.lastError:OAuth2请求失败:凭据无效。< / p>

如何强制重定向重复授权过程?

这是我的background.js

var access_token;
chrome.identity.getAuthToken(
    {        'interactive': true},
    function(token) {access_token = token;
        console.log (access_token);
        // Authorized
    }
);

0 个答案:

没有答案
相关问题