How would you prevent the same ticket being checked in twice?
After this you can answer: How would you prevent the same ticket being checked in twice?
Say it in 30 seconds
Section titled “Say it in 30 seconds”The deeper answer
Section titled “The deeper answer”The current HMAC token authenticates its payload and checks that ticket identity matches booking and seat. It does not record admission. A screenshot or copied QR remains cryptographically valid until the verifier applies additional state and policy.
A proposed check-in endpoint would authorize staff for the event, validate ticket ownership rules and use a conditional database transition. Record scanner, request identity and admission time for audit. If the response is lost after the transition commits, the same scan intent must replay its success rather than appear to be a new fraud attempt.
Two online scanners need one authoritative state change. Two disconnected scanners cannot both know whether the other admitted the ticket. Choose online-only admission, partition tickets among devices, or accept and reconcile offline conflicts. Revocation, event rescheduling, key rotation and manual override also need rules. The referenced verifier is implemented; the endpoint, admission records and staff scanner UI are proposed only.
Counter-questions
Section titled “Counter-questions”Can you put used=true inside the QR?
What if the check-in server is unavailable?
Why retain an audit record?
Where in MiniTickets
Section titled “Where in MiniTickets”Read the path chapter, select the relevant map piece →, then inspect apps/worker/src/tickets/token.ts → verifyTicket.
Read this book online: https://book.theversehub.in/