DEV Community

Discussion on: Add Google Login to your React Apps in 10 mins

Collapse
 
namansamra profile image
namansamra

hi I have a query like if i have a database and then user tries to login with google then how can I find the user from the database .

Collapse
 
sivaneshs profile image
Sivanesh Shanmugam

With the token obtained, you can extract the user's information in which you can get email, Google user ID etc. With that I think you can find the user.