Old JWT Verifiers Ignore a New Restricting Claim, So Restrict by Narrowing scope

The JWT specification tells verifiers to ignore claims they do not understand. That is harmless for claims that grant things and dangerous for claims that restrict them. Four ways to cap what a client kind may hold, tested with a small issuer and three verifiers, and the one I would pick.

September 17, 2026 | 8 min

A Step-Up Challenge Is a 401, and Your Client Needs a Loop Guard

RFC 9470 lets an API tell a client that its access token was obtained with too weak or too old a login. Reading the RFC section by section, then building a toy server and client, shows what the document specifies (a 401 challenge, two parameters) and the three things it leaves to you: concurrent challenges, loops, and caches.

September 15, 2026 | 10 min

Enable Refresh Token Rotation and Parallel Requests Can Log Users Out

Refresh token rotation turns a reused token into a theft alarm. A client that fires three requests with an expired access token and refreshes once per 401 presents the same refresh token three times, and trips that alarm on itself. This post breaks a naive client on purpose, fixes it with single-flight refresh and a stale check, and compares the alternatives: a server grace window, request gating, proactive refresh and sender-constrained tokens.

August 30, 2026 | 13 min