После обновления до Ma c OS X версии 10.15.2 вход в Google с библиотекой google-api-javascript-client
перестал работать для некоторых пользователей в Safari.
Вкладка консоли разработчика и сети Safari не отображается Я действительно не могу рассказать мне много о том, что проблема для этой конкретной c версии Safari.
Пример фрагмента
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id" content="REPLACEME.apps.googleusercontent.com">
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}
</script>
Документация: https://developers.google.com/identity/sign-in/web