Session, JWT and OAuth

One login, three ways of proving it. Revoke it, and only one of them stops.

Session, JWT and OAuth proving one login (interactive map)

The same GET /me proved three ways. A cookie carrying an id your API dereferences in the session store, where deleting the row 401s the very next request. A signed token verified against your key with nothing looked up, which is why it keeps working until exp says otherwise. And a login run by somebody else, whose one-use code is swapped with PKCE for an access token that is itself a JWT.

← All cheatsheets