I'm having trouble logging out with Google social login. I was able to set the login and execute successfully receiving the return of the name, email and photo, and redirected to the dashboard successfully.
In the dashboard I entered the settings meta, plataform.js and the link to leave the page, and I get the following message,
TypeError: gapi.auth2 is undefined
<a onclick="signOut();"> sair</a>
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
alert('OK');
});
}