anthonyjgrove / react-google-login

A React Google Login Component
https://anthonyjgrove.github.io/react-google-login
MIT License
1.85k stars 425 forks source link

Is the "sub" identifier permanent for particular google account? #531

Open lofti198 opened 2 years ago

lofti198 commented 2 years ago

I want to use sub identifier to store users (who authorized with GoogleLogin) in my database. But is this sub id permanent for the particular account?

octavian-regatun commented 2 years ago

image

https://developers.google.com/assistant/identity/google-sign-in-oauth as specified here, Google recommends to use sub as an unique user identifier (ID) in database.

lofti198 commented 2 years ago

Thank you!