When you click "Sign in with Google" or let an app "connect to your Gmail," OAuth is almost always the mechanism underneath. Instead of giving the app your actual password, you approve a scoped, revocable token that only grants the specific permissions you agreed to.
It's the reason you can disconnect a third-party app's access to your account at any time without changing your password everywhere else.
