How Sing in with google and angular web app works together?

Viewed 8

Google got a java script url for sign in with Google, But how do you load this in angular web app? The html code below does not show Login with google button.

<html>
  <body>
      <script src="https://accounts.google.com/gsi/client" async defer></script>
      <div id="g_id_onload"
         data-client_id="YOUR_GOOGLE_CLIENT_ID"
         data-login_uri="https://your.domain/your_login_endpoint"
         data-auto_prompt="false">
      </div>
      <div class="g_id_signin"
         data-type="standard"
         data-size="large"
         data-theme="outline"
         data-text="sign_in_with"
         data-shape="rectangular"
         data-logo_alignment="left">
      </div>
  </body>
</html>

Here is the sign in with google doc https://developers.google.com/identity/gsi/web/guides/client-library

Could anyone help, as I am not in frontend development?

1 Answers
Related