2021-05-03, 04:39 PM
Hi,
I am new to the forum & development and just launched my community and wanted to integrate one tap google sign to my forum.
I already embedded google login in registration & login page but wanted to setup automatic sign-in whenever as popup window on right : continue sign-in as...."
I found this below code from google developer:
<script src="https://accounts.google.com/gsi/client" async defer ></script>
<div id="g_id_onload"
data-client_id="88721031712-b58hjf2irn5ppkpundhd9tna7du9aru6.apps.googleusercontent.com"
data-context="signin"
data-ux_mode="popup"
data-login_uri="https://kashyapkashmiri.in/member.php?action=login&gateway=google"
data-nonce=""
data-auto_select="true">
</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>
I pasted it in index.php
and the issue is after I am login using google it returns a black redirect popup with below link:
https://accounts.google.com/gsi/select?c...ashmiri.in
It is suppose to be automatically login or should show a name like " continue with {Name}". But only a black popup window appers like the one I attached below.
Please help as I am new to coding.
I am new to the forum & development and just launched my community and wanted to integrate one tap google sign to my forum.
I already embedded google login in registration & login page but wanted to setup automatic sign-in whenever as popup window on right : continue sign-in as...."
I found this below code from google developer:
<script src="https://accounts.google.com/gsi/client" async defer ></script>
<div id="g_id_onload"
data-client_id="88721031712-b58hjf2irn5ppkpundhd9tna7du9aru6.apps.googleusercontent.com"
data-context="signin"
data-ux_mode="popup"
data-login_uri="https://kashyapkashmiri.in/member.php?action=login&gateway=google"
data-nonce=""
data-auto_select="true">
</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>
I pasted it in index.php
and the issue is after I am login using google it returns a black redirect popup with below link:
https://accounts.google.com/gsi/select?c...ashmiri.in
It is suppose to be automatically login or should show a name like " continue with {Name}". But only a black popup window appers like the one I attached below.
Please help as I am new to coding.