Olympus Docs
ReferenceSequence diagrams

Password recovery with HMAC token

Forgot-password flow using HMAC-signed recovery tokens

Why HMAC, not random DB token

Stateless validation, no DB lookup per token validate; HMAC verifies cryptographically. See ADR 0017.

Single-use enforcement

Even though the HMAC is stateless, single-use IS stateful, Kratos records used tokens in the recovery flow's state. Replay attack returns "token already used."

Where to learn more

On this page