Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- This is a real security-relevant documentation flaw: the example table defines `last_failed_at`, but the function writes to `last_refreshed_at`, which does not exist in the schema. Users who copy this example will get a broken hook or will silently fail to record failed attempts, defeating the intended MFA rate limiting and allowing repeated brute-force verification attempts. In an authentication hook example, incorrect security logic is especially dangerous because readers are likely to deploy it as-is to protect MFA flows.
