Edge Case Handling Examples
We've added comprehensive edge case handling examples to the age verification guide and updated the verification event contract to clarify field presence rules.
What's New
Edge Case Handling Examples
The Waterfall Flow guide now includes detailed code examples for handling verification edge cases. Each example demonstrates both incorrect and correct handling patterns.
New examples include:
- Partial attempt (max attempts exceeded): Proper handling of
max-attempts-exceededfailure reason when users exhaust all verification attempts without a conclusive age determination - Suspicious activity detected: Security-focused handling of
fraudulent-activity-detectedfailure reason, including appropriate rate limiting and security measures - Complete edge case handler: A comprehensive TypeScript example demonstrating all patterns together
All examples link directly to the Verification Event Contract for complete field presence rules.
Verification Event Contract Updates
The Verification Event Contract has been updated to clarify field presence rules:
ageandageCategoryare always present for PASS status: All verification methods that result in PASS provide both age information and age category. You can safely access these fields without conditional checks when processing PASS status results.- Age bounds clarification: When an exact age is not provided by the verification method,
age.lowwill be the threshold minimum age required for the verification, andage.highwill be 100.