Revoke Access to the app Gmail API

2019-07-22 03:45发布

问题:

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.