Replay-Safe Verification Tokens in PostgreSQL
Email verification looks like a small feature: create a token, send a message, and mark the account as verified when the user clicks it. In a real REST API, the click can arrive twice, arrive after expiry, or race with a retry from a mobile client.