login with gmail is working but when i click logout using google api it reload the page but it does not logout the gmail accout...
function logout() {
location.reload();
gapi.auth.signOut();
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Arvind VishwakarmaPosted Dec 11, 2014, 4:53 AM
Correct Syntax:
function logOut() {
gapi.auth.signOut();
location.reload(true);
}
Thanks