I am unable to logout of gmail in oauth.I tried using -
https://accounts.google.com/Logout?continue=http://google.com
It did work but. Is there any way to logout from gmail without redirect path? I am just a beginner. Can anyone please suggest me an alternative approach. Thank you in advance.
EDIT -
On Sign in -
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
var username = profile.getEmail();
var profile = googleUser.getBasicProfile();
var imagurl=profile.getImageUrl();
var name=profile.getName();
var email=profile.getEmail();
getDetails(email, name); // call getDetails
}
On Sign Out -
function signout()
{
document.location.href = "https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=http://google.com";
}
The above code works but I need an alternative approach for signout without redirect path.
I have tried -
window.location = "https://mail.google.com/mail/u/0/?logout&hl=en";
but it doesnot work.