I'm looking to use Google Sign In for a website I'm working on and I've successfully got a Google Sign In button working and returning profile information for the chosen user.
My question is now when using this on a website which needs to keep some kind of persistence through pages (using a RESTful design) how do I link my local database (with information related to the users account on my website) with their Google User.
The information I'm getting back from the profile information is:
- ID
- Name
- Image
It says in an explicit comment next to the ID in the example code: // Don't send this directly to your server!
. So I assume I shouldn't store an entry in my users database table using the ID, so what am I supposed to use? I kind find much information relating to this online, am I approaching this entirely incorrectly?
Thank you.