Prompt
What should I use for customer identity in a mobile-first product?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
For a mobile-first product, the best default is usually:
Use the user’s phone number or email as the primary customer identity, and assign your own internal customer ID behind the scenes.
Recommended approach
- Internal customer ID: immutable, system-generated primary key
- Login/verification identity:
- Phone number if your product is truly mobile-first and SMS/WhatsApp-based workflows matter
- Email if the product is more account-centric, cross-device, or B2B
- Support both if possible, but don’t use either as your main database key
Why not use phone/email as the primary key?
Because they can change:
- people change phone numbers
- email addresses get abandoned or renamed
- users may have multiple emails/numbers
- formatting and normalization issues can cause duplicates
What works best in practice
A solid identity model is:
customer_id— your permanent internal identifierphone_number— normalized and verified, optional unique login methodemail— normalized and verified, optional unique login methodexternal_ids— IDs from Apple, Google, Stripe, CRM, etc.- Identity history — track changes over time
If you must pick one user-facing identity
- Mobile-first consumer app: phone number
- Broader SaaS / multi-device / professional app: email
- Best of both worlds: phone for sign-in, internal ID for storage
Rule of thumb
Never make a mutable identifier your database primary key.
If you want, I can also suggest:
- a database schema for customer identity,
- the best login flow for mobile-first apps,
- or how to handle duplicate accounts / merged identities.