Registering the Project with Google

Go to Sign In With Google Setup and register a project. Follow the guidelines to create a Credential.

Then, add the script to the HTML page

<script src="https://accounts.google.com/gsi/client" async defer></script>    
<script>
function loginFromGoogle(data) {
    Auth.loginFromGoogle(data)
}
</script>