Skip to content

Course

JWT & OAuth Deep Dive

Token systems done right and wrong — alg confusion, key confusion, OAuth flows and PKCE, token theft, refresh rotation, and how to audit a real implementation before someone else does.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

JWT Anatomy and Attacks

What a token actually is, and the classic ways verification goes wrong.

  1. 01JWT Anatomy: Three Parts, One ContractWhat the header, payload, and signature actually are, what 'signed not encrypted' means in practice, and the claims that make a token safe to consume.20mOpen
  2. 02Algorithm Confusion: The `alg` Field Is an Attack Surfacealg=none, RS256-to-HS256 downgrade, and why pinning the algorithm server-side is non-negotiable.22mOpen
  3. 03Key Confusion, JWKS, and Key RotationHow services learn which keys to trust, how kid lookup goes wrong, and how to rotate signing keys without logging everyone out.20mOpen

OAuth Flows and Token Lifetimes

Authorization code + PKCE, refresh rotation, and the theft model they defend against.

  1. 01OAuth Is Delegation, Not AuthenticationThe four roles, what the tokens are actually for, and why 'login with Google' is OpenID Connect, not OAuth.18mPremium
  2. 02Authorization Code + PKCE: The One Flow to KnowWhy the code exists at all, how PKCE closes the interception gap, and the state/nonce checks people skip.25mPremium
  3. 03Token Theft and Refresh Token RotationThe theft model bearer tokens imply, why refresh rotation is the industry answer, and how to implement rotation without breaking users.25mPremium

Auditing and Hardening

Reviewing a real token implementation, and the operational controls that survive incidents.

  1. 01Auditing Token Verification in Real CodeA field method for reviewing JWT consumption: the six questions, the tests to run, and the failure patterns that keep recurring.22mPremium
  2. 02Browser Storage Wars: Cookies vs Tokens, XSS vs CSRFWhere tokens should live in a browser app — the real trade-off table, and why 'tokens in memory' and BFF are the modern answers.20mPremium
  3. 03Operating Tokens in Production: Revocation, Monitoring, Incident ResponseThe operational layer nobody designs: revocation strategies, the telemetry that catches abuse, and what to do the day a signing key leaks.22mPremium