Commit Graph
1 Commits
Author SHA1 Message Date
lukaszraczylo 2ceea0f617 fix(session): accept dotted opaque refresh tokens
Entra ID refresh tokens contain two dots but are not JWTs. The session
validator treated them as JWTs and rejected them. The session then lost
the refresh token, and users had to log in again after one hour.

A refresh token now falls back to opaque validation if its first segment
is not a JSON header with an alg member. A token that claims to be a JWT
keeps full JWT validation.

Fixes #167
2026-11-11 17:26:20 +00:00