Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11601

How can I write user's details to the console after Google Sign-in? [closed]

$
0
0

Here is my code:

<!DOCTYPE html><html><head><meta charset="utf-8" /><title></title></head><body><script src="https://accounts.google.com/gsi/client" async></script><div id="g_id_onload"         data-client_id="MYCLIENTID"         data-context="signin"         data-ux_mode="popup"         data-callback="callbackFunction"         data-auto_prompt="false"></div><div class="g_id_signin"         data-type="standard"         data-shape="pill"         data-theme="filled_black"         data-text="signin_with"         data-size="large"         data-logo_alignment="left"></div><script>        function callbackFunction() {            console.log("signed in");        }</script></body></html>

I tried asking ChatGPT and checked library's documentation from Google but couldn't find anything. ChatGPT tells me the old methods and its not working.

What I want to do is this console output for example:

Full Name: Name SurnameEmail: namesurname@gmail.comImage URL: URL

Viewing all articles
Browse latest Browse all 11601

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>