I followed google developer docs https://developers.google.com/identity/sign-in/web/sign-in and created google sign-in for my site. The next question i