In my (client-side AngularJS) web application I use Google API's Oauth to let the user sign-in
gapi.auth.authorize({
client_id: clientId,
scope: scopes,
immediate: true
}, handleAuthResult);
Now I want to let the user signout as well.
I found that I can do it by using an HTTP request as explained in:
https://developers.google.com/+https://waybackassets.bk21.net/signin/disconnect
However since I'm using Javascript APIs for sign-in, I would like to use Javascript also for logout (i.e. revoking access token).
Is it possible? If yes, how?
EDIT : I precise that my goal is not to use an HTTP request via jQuery but something more alike the login, for example :
gapi.auth.signout (..