I'm using Google APIs Client Library for JavaScript (Beta) to authorize user google account on web application (for youtube manipulations). Everything works fine, but i have no idea how to "logout" user from my application, i.e. reset access tokens.For example, following code checks user authorization and if not, shows popup window for user to log into account and permit web-application access to user data:gapi.auth.authorize({client_id: CLIENT_ID, scope: SCOPES, immediate: false}, handleAuth);But client library doesn't have methods to reset authorization.There is workaround to redirect user to "accounts.google.com/logout", but thisapproach is not that i need: thus we logging user off from google account not only from my application, but also anywhere.Google faq and client library description neither helpful. 解决方案 Try revoking an access token, that should revoke the actual grant so auto-approvals will stop working. I assume this will solve your issue.https://developers.google.com/accounts/docs/OAuth2WebServer#tokenrevoke 这篇关于如何重置 google oauth 2.0 授权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!