How could I revoke access to the app from backend Node.js As we have the option to generate access_token using the method refreshaccesstoken(). So is there any similar method that I could use to revoke access for the app.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can easily revoke a token programmatically by sending a request to https://accounts.google.com/o/oauth2/revoke?token={token}
. Both access_token
and refresh_token
works.