Lifetime and Single Use for a Recovery Grant
Account recovery grants should follow a deliberate expiration and consumption policy so the granted action remains limited in scope and time.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace ordinary use
An application can mark a synthetic recovery grant consumed after successful recovery. A second redemption should follow the documented used-grant behavior. See state transition tables.
Check the time boundary
Use an injected clock to verify behavior before and at expiry according to the system's definition. Keep secret values out of test output. Fake clocks allow these tests without waiting.[1]