Я попробовал демо-версию, и она работает, но когда я пробую в угловом режиме, она не работает идеально. и проблема в функции, она не работает .
кнопка входа
<div class="g-signin2" data-onsuccess="onSignIn()" data-theme="dark"></div>
добавлена зависимость и создан clientID
<meta name="google-signin-scope" content="profile email">
<meta name="google-signin-client_id" content="******644722-rv6i1sh8437nc82o8egufkui0424k1qg.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
функция называется
$scope.onSignIn=function(googleUser){
var profile = googleUser.getBasicProfile();
console.log("ID: " + profile.getId());
console.log('Full Name: ' + profile.getName());
console.log('Given Name: ' + profile.getGivenName());
console.log('Family Name: ' + profile.getFamilyName());
console.log("Image URL: " + profile.getImageUrl());
console.log("Email: " + profile.getEmail());
var id_token = googleUser.getAuthResponse().id_token;
console.log("ID Token: " + id_token);
};