0

I am trying to create a sign out functionality in my Gmail add-on.

I tried using the resetOAuth() function that is provided in the documentation for Gmail add-ons, but it does not seem to reset my token and logout the third party user.

I also tried to use:

https://accounts.google.com/o/oauth2/revoke?token={token}

But I am getting an invalid_token error.

How do I exactly use this functionality to successfully sign out my user?

hhsb
  • 560
  • 3
  • 23
Rogin Neil
  • 55
  • 1
  • 7

1 Answers1

0

You may wish to revoke access given to an application. See this documentation.

A user can revoke access by visiting Account Settings. It is also possible for an application to programmatically revoke the access given to it. Programmatic revocation is important in instances where a user unsubscribes or removes an application. In other words, part of the removal process can include an API request to ensure the permissions granted to the application are removed.

Check this link for additional information: How to reset google oauth 2.0 authorization?

abielita
  • 13,147
  • 2
  • 17
  • 59