How Inspection Verification and Customer Access Works
Source: workshop-api-gateway/handlers/inspectionHandler.js
- First API call to GET /inspections generates verification codes (side effect on read!)
- Verification code is 8-digit random number
- Codes are generated but deleted from API response — consumer never sees them
- Customer view logs timestamp and attempts to generate dynamic vehicle image URLs
Support scenarios
- "Customer can't access inspection" → verification code might not have been delivered
- "Inspection link stopped working" → codes regenerated on next API call