OAuth is a way to log in to one app using an account from another — like clicking "Continue with Google" instead of creating a new password.
When you check into a hotel, the front desk doesn't give you the master key. They give you a keycard that opens your room and maybe the pool — nothing else. If you lose it, the hotel deactivates it. The master key stays with them.
OAuth works the same way. When you click "Continue with Google," Google doesn't share your password with the app. Instead, it creates a limited credential — like a keycard — that lets the app know who you are (your name and email). The app never sees your Google password, and Google can revoke access anytime.
The app never touches the user's Google password. It only gets what Google agrees to share.