I'm trying to implement Login and Registration to my React App with the Google API. I can't figure out the correct way to register a new user with the information that Google provides (the GoogleAuth Object).
After a successful login with the popup window, the GoogleAuth object (I will call it 'dict' from now on) gives me a lot of info, some of it I don't know what is exactly, there are some access tokens (that repeats over the dict) and the main info of the profile of the user (name, mail, googleID, etc),
I also notice that the "googleID" repeats over the dict but with different names (same as other info)(there is more info that relates to the tokens as "expiration", "first issued", etc but I believe I do not need that).
I'm guessing that the tokens are used to GET and POST info from and/or to Google Account (I kinda understand how JWT works).
So my questions are:
Can someone explain me what is all the info and why it is repeated in the dict? (for example the number in dict.El also appears in dict.profileObj.googleId and dict.w3.Eea and dict.googleId)
Since my registration method needs Name, Mail and Password, the main question is:
What should I put in the password field? The GoogleId? if so, is it secure? The Token? I think no because it expires right?
Thanks for your help