DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeInfo / GuidesOAuth 2.0 Flows Explained

About OAuth 2.0 Flows Explained

OAuth 2.0 Flows Explained preview - Info / Guides tool

Auth code + PKCE, client credentials, device, token types, scopes. Part of the DevTools Surf developer suite. Browse more tools in the Info / Guides collection.

Use Cases

  • Backend devs implementing Google or GitHub social login
  • Mobile developers securing API access with PKCE authorization flow
  • Platform teams designing OAuth scopes for third-party API access
  • Security engineers auditing token storage and refresh mechanisms

Tips

  • Start with Auth Code + PKCE for any browser-based application
  • Check the token types section to understand access vs refresh tokens
  • Use the flow decision tree to pick the right grant for your client type

Fun Facts

  • OAuth 2.0 (RFC 6749) was published in October 2012 by Eran Hammer, who later resigned from the project calling it 'the road to hell' due to committee compromises.
  • PKCE (Proof Key for Code Exchange, RFC 7636) was originally designed for mobile apps in 2015 but is now recommended for all public clients including SPAs.
  • The implicit flow, once the standard for SPAs, was formally deprecated by the OAuth Security Best Current Practice draft in 2019 due to token leakage risks.

FAQ

Authorization Code + PKCE — which apps?
Modern web apps, mobile, and SPAs. PKCE adds a challenge/verifier to prevent intercept attacks. The current standard for user-facing auth.
Client credentials?
Service-to-service (no user involved). Client secret authenticates the service; no user redirect. For backend APIs talking to other APIs.
What's the device flow?
For devices without browsers (smart TVs, CLIs). Device shows a code; user logs in on a phone. Think 'setting up Netflix on a Roku'.
Access vs refresh tokens?
Access token is short-lived (minutes to an hour) and carries the auth. Refresh token is long-lived (days to weeks) and gets new access tokens without re-login.

Related Info / Guides Tools

Docker BasicsSEO Basics for DevelopersREST API BasicsNext.js App Router BasicsConnect Your Site to GoogleGit Basics (First Hour)Kubernetes BasicsGraphQL vs REST
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback