OAuth is a standard that lets users log into your app using their existing accounts (Google, GitHub, Facebook, etc.) instead of creating a new password. You delegate authentication to a trusted provider—they handle login security, you get a token proving the user is who they say they are. No password storage, no password reset flows, no breach liability.
Use OAuth when you want to reduce friction (users hate creating accounts), offload security risk (you don't store passwords), or need access to user data from providers (Google Calendar, GitHub repos). Most modern apps use OAuth as the primary or only login method. For B2C apps, "Sign in with Google" alone covers 80%+ of users. Implement with libraries like NextAuth, Auth0, or Clerk—don't roll your own.
Cybersecurity
Third-party login—secure delegation