Summery

OAuth is an open-standard authorization protocol that allows applications to access user data without requiring the user’s password. It enables secure delegated access, commonly seen in “Login with Google/Facebook” features.

In essence it:

  • Prevents sharing passwords with third-party apps.
  • Uses access tokens issued by an authorization server.
  • Works over HTTP/HTTPS and supports web, mobile, and desktop apps.

It’s used to:

  • Avoid sharing passwords with every app.
  • Allow safe, controlled access to user data.
  • Enable convenient single-click login and authorization.
  • Support modern applications across the web, mobile, and APIs.

An OAuth access token doesn’t have one fixed format. It usually looks like one of these:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NSIsInJvbiOiJ1c2VyIn0.SGUflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c - JWT (JSON Web Token)
ya29.a0AfH6SMB_fakeExampleToken1234567890 - Opaque token
gho_abcdefghijklmnopqrstuvwxyz123456 - Provider-specific token