Login to app via Google account


New member
I have an simply application where I store user data in a database and the user can log in using that data. I want to do where the user can be able to login via Google account.

User authenticates via Google account, after success login, my system has to I compare e-mail adress with email in database. If email adress is the same, user is entrance to system, password isn't checking ?

Please explain to me that is my thinking correct?