- 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.