Google Sign In API OAuth2 works fine when I choose a user account. But During authorization with youtube scope user is also able to choose between Brand account and User Account. In case of Brand account was chose error appears.
type: "tokenFailed"
idpId: "google"
error: "server_error"
For authentication I use next google libraries
<script src="https://apis.google.com/js/platform.js?onload=init" async defer></script>
<script src="https://apis.google.com/js/api.js" async defer onload="console.log('api loaded')"></script>