撤消对应用程序 Gmail 的访问权限 API

Revoke Access to the app Gmail API

如何从后端撤消对应用程序的访问权限 Node.js 因为我们可以选择使用方法 refreshaccesstoken() 来生成 access_token。那么有没有类似的方法 我可以用来撤销应用程序的访问权限。

您可以 revoke a token programmatically 通过使用 access_tokenrefresh_token 发送请求。

POST https://oauth2.googleapis.com/revoke?token={token} HTTP/1.1
Content-type: application/x-www-form-urlencoded