Notes
Solutions explained through code.
Rotating refresh tokens without logging anyone out on a double click
Every refresh swaps the token, and reusing an old one ends the whole session. The catch: two tabs refreshing at once look like theft.
The Ecuadorian ID card has two faces
Face verification worked with the test photos and rejected almost every real ID card. Four fixes, and a threshold calibrated with data.