【发布时间】:2018-09-11 13:03:47
【问题描述】:
我正在使用带有 chrome.identity.removeCachedAuthToken() 的 Google Oauth。我可以登录用户,但不能使用 removeCachedAuthToken() 注销。
chrome.identity.removeCachedAuthToken({ token: current_token },
function() {});
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://accounts.google.com/o/oauth2/revoke?token=' +current_token);
xhr.send();
有没有办法清除chrome.identity插件的登录状态?
【问题讨论】:
标签: javascript google-chrome-extension oauth-2.0