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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Arvind Vishwakarma111 reputationPosted Dec 10, 2014, 11:53 PM EST
Correct Syntax:
function logOut() {
gapi.auth.signOut();
location.reload(true);
}
Thanks