Summary
Product doc section 5.2 specifies NFC tap support — a physical card or badge sticker programmed with the DevCard link. Add a backend endpoint that generates and returns the correct NDEF payload (NFC Data Exchange Format) for a user's DevCard URL so the mobile app can write it to an NFC tag.
Context
This is a post-MVP feature but the backend work is self-contained and maps to apps/backend/src/routes/ as a new nfc.ts route file.
Tasks
Acceptance Criteria
Difficulty
medium — straightforward route design but requires understanding NDEF URI record structure.
Summary
Product doc section 5.2 specifies NFC tap support — a physical card or badge sticker programmed with the DevCard link. Add a backend endpoint that generates and returns the correct NDEF payload (NFC Data Exchange Format) for a user's DevCard URL so the mobile app can write it to an NFC tag.
Context
This is a post-MVP feature but the backend work is self-contained and maps to
apps/backend/src/routes/as a newnfc.tsroute file.Tasks
apps/backend/src/routes/nfc.ts.GET /api/nfc/payload(authenticated) that returns:{ "type": "URI", "payload": "https://devcard.dev/<username>" }GET /api/nfc/payload?card=<cardId>variant for context card-specific URLs.cardId(if provided) belongs to the authenticated user.apps/backend/src/app.ts.apps/backend/README.mdwith a note linking to thendefjslibrary the mobile team should use on the client side.Acceptance Criteria
Difficulty
medium— straightforward route design but requires understanding NDEF URI record structure.