I am trying to get the user details like email and name using Google login using the new HTML API.
I have been able to make the login work but I am not able to get the user details as I do not know the field names and the syntax to get those details
The login code that I was able to get using the following link:(Identity services for web)
Any help would be hugely appreciated
The generated code sample is:
<script src="https://accounts.google.com/gsi/client" async></script> <div id="g_id_onload" data-client_id="your client id.apps.googleusercontent.com" data-context="signin" data-ux_mode="popup" data-login_uri="http://localhost" data-auto_prompt="false"> </div> <div class="g_id_signin" data-type="standard" data-shape="rectangular" data-theme="outline" data-text="signin_with" data-size="large" data-logo_alignment="left"> </div>