How marceltusachvillegas/frontendsms works
AntiFraude SMS is a mobile app for verifying a phone number, analyzing SMS messages for fraud risk, and reviewing results. The main flow is OTP sign-in, followed by a message inbox populated from backend history; intercepted Android SMS notifications can also be analyzed in the background. The app additionally exposes message details/reporting, an AI assistant, educational content, and profile controls. The sampled sources establish login, persistence, API, inbox, and background-analysis links; links from unsampled screens are shown only as unverified where needed.
Main entry points: api.ts Backend API client · auth-context.tsx Auth context · background-notification.ts SMS listener · index.tsx OTP sign-in
Components 16
Access and session
- OTP sign-in
src/app/index.tsx - Auth context
src/context/auth-context.tsx - Session storage
src/lib/token-store.ts
SMS protection
- Message inbox
src/app/(tabs)/bandejaMensaje.tsx - Message details
src/app/detallemensaje.tsx - SMS listener
src/background-notification.ts - Backend API client
src/lib/api.ts
Guidance and account
- AI assistant chat
src/app/chatAsistente.tsx - Education center
src/app/(tabs)/centroEducativo.tsx - User profile
src/app/(tabs)/perfil.tsx
App platform
- App navigation
src/app/_layout.tsx - Tab navigation
src/app/(tabs)/_layout.tsx
Other components
- Phone user
- SecureStore
- Android notifications
- Anti-fraud backend
Connections 15
- Phone user → OTP sign-in: starts sign-in
src/app/index.tsx - OTP sign-in → Backend API client: requests OTP
src/app/index.tsx - OTP sign-in → Auth context: starts session
src/app/index.tsx - Auth context → Session storage: persists session
src/context/auth-context.tsx - Session storage → SecureStore: reads and writes
src/lib/token-store.ts - Message inbox → Backend API client: loads history
src/app/(tabs)/bandejaMensaje.tsx - Message details → Backend API client: uses reports API
src/app/detallemensaje.tsx - SMS listener → Android notifications: handles events
src/background-notification.ts - SMS listener → Session storage: reads token
src/background-notification.ts - SMS listener → Backend API client: analyzes message
src/background-notification.ts - Backend API client → Anti-fraud backend: sends HTTP requests
src/lib/api.ts - AI assistant chat → Backend API client: uses chat API
src/app/chatAsistente.tsx - User profile → Auth context: uses session
src/app/(tabs)/perfil.tsx - App navigation → Auth context: provides session
src/app/_layout.tsx - Tab navigation → Auth context: checks session
src/app/(tabs)/_layout.tsx