【发布时间】:2020-10-06 19:54:40
【问题描述】:
如何从后端 Node.js 撤消对应用程序的访问权限 因为我们可以选择使用方法 refreshaccesstoken() 生成 access_token。那么有没有类似的方法 我可以使用它来撤消应用的访问权限。
【问题讨论】:
如何从后端 Node.js 撤消对应用程序的访问权限 因为我们可以选择使用方法 refreshaccesstoken() 生成 access_token。那么有没有类似的方法 我可以使用它来撤消应用的访问权限。
【问题讨论】:
您可以通过access_token 或refresh_token 发送请求来revoke a token programmatically。
POST https://oauth2.googleapis.com/revoke?token={token} HTTP/1.1
Content-type: application/x-www-form-urlencoded
【讨论】: