Utilizing this resource, I successfully implemented a login feature on my website. The implementation includes functions such as onSignIn
, signOut
, and auth2.isSignedIn.get()
to manage user authentication.
Now, I am looking for a way to extract specific data entered by the user, such as a special value from an input field, and store it on the user's Google account under a unique key, similar to using localStorage.
To begin this process, here is a snippet of code:
document.getElementById("userText").addEventListener("change", function() {
var data = document.getElementById("userText").value;
googleAccount.userData = data; // Change this Line
});
<input type = "text" id = "userText">