Back to Foodie Pocket
or

Contact Info

Password

Account Preferences

Developer notes — future backend mapping

A. Fields & validation

  • fullName — string, required, min 2
  • email — string, required, valid email
  • phone — string, optional
  • password — string, required, min 8
  • consent — boolean, required true
  • marketingConsent — boolean, optional

B. Current storage

Mock only — stored in React state via AuthContext. Not persisted across refresh.

C. Future backend mapping

Supabase users table: id, full_name, email, phone, password_hash, consent, marketing_consent, created_at.

POST /api/auth/signup
{
  fullName, email, phone,
  consent, marketingConsent
}