User passport
Goal: Build a passport-style view that pairs a member’s identity and standing with the places they’ve checked in.Prep time: ~10 minutes A passport has two halves: who the member is (profile, level, progress) and where they’ve been (their check-in history). Both read from the member’s OAuth token.
Off the shelf
Two components from@flynetdev/react cover both halves. UserPassport renders
profile, level, and progress; CheckInFeed renders the member’s check-ins,
newest first. Wrap them in one FlynetProvider with a FlynetMemberClient
built from the member’s OAuth token — they fetch client-side under the
read:profile and read:user_checkins scopes.
app/passport.tsx
From scratch
To assemble the passport rows yourself — or build them outside React — read both halves fromFlynetMemberClient directly. The check-in feed embeds full venue
context, so you rarely need a second call.
What you will use
GET /flynet/v1/users/me- profile (name, email, account status)GET /flynet/v1/users/me/status- tier, level, and progressGET /flynet/v1/users/me/check_ins- the member’s check-ins with embedded venue context