Screens & ownershipFind routes, owners, and evidence

Screens & ownership

reachableconfiguration-dependent Fresh evidence

Phone entry & session restoration

The single mandatory account gate handles Indonesian phone normalization, OTP request/verification, session restoration, and sign-out.

Screen

IC-Trade phone number entry screen
Unified account entry before any KYC data is collected.

Entry points and state

App route
Cold launch → RootView → AppAuthGateView
Engineering owner
Mobile platform
KYC boundary
Authentication precedes KYC; phone verification does not imply identity approval.

Entry points

  • First onboarding completion
  • Returning unauthenticated launch
  • Post-logout

State ownership

  • AppAuthSessionStore (shared)
  • RootView observes session state
  • AppEntrySignInPresentationState for optional entry/back context

Data provenance

Read this boundary before interpreting realistic market, identity, order, or portfolio presentation as production data.

Mode
configuration-dependent
Primary source
Configured phone authentication service
Fallback
No live-to-demo fallback
Persistence
Provider session; demo service persists a synthetic account locally
Network boundary
None in demo; Supabase Auth in configured mode
Production ready
No
Operational caveat
Adapters exist, but production SMS delivery, recovery, fraud controls, sender policy, and spend limits are unproven.

Dependencies and tests

Dependencies

  • PhoneAuthenticationService
  • DemoPhoneAuthenticationService in local demo
  • SupabasePhoneAuthenticationService when configured

Characterization evidence

  • PhoneAuthenticationFoundationTests
  • AppAuthSession and root entry tests
  • PhoneFirstKYCJourneyUITests

Audited source evidence

These are small, sanitized excerpts—not complete source files. A changed hash must be reviewed before this record is marked fresh again.

Alva Online Trading/App/RootView.swift fresh

Symbol: RootView.routedContent

Authenticated accounts enter AuthenticatedCustomerRoot; all other states remain behind phone entry.
Audited SHA-256
2a8c30a43e6130f8121ebe6d1c5ae6ba9976cb4a9b5ffb19ab4547bc6aa6318e
Alva Online Trading/App/AppAuthGateView.swift fresh

Symbol: AppAuthGateView

The gate renders restoration, phone entry, or authenticated content from one store.
Audited SHA-256
f4378357f1b63850e450bf963c4b0aac19ec9030f99d62fedf3cd9df628f74d5
Alva Online Trading/Core/Auth/AppAuthSession.swift fresh

Symbol: AppAuthSessionStore

The shared store owns authentication state transitions.
Audited SHA-256
cebad8997bfdbaf8a32762c74248b49c3ebf8c9e281a43150f1f86ff850e60f9