newOS for Developers
Back to Overview
PhoneSignIn
inputPlaygroundPhone number authentication form with OTP verification flow.
Source Path
apps/web/Components/Forms/PhoneSignIn.tsxAuthentication Flow
- User enters phone number with country code selector
- Request OTP via Firebase Phone Auth
- User enters 6-digit verification code
- Verify OTP and obtain Firebase ID token
- Exchange for Newgraph JWT via auth API
- Store token and redirect to app
API Integration
firebase.auth().signInWithPhoneNumber()confirmationResult.confirm(code)newgraph-signals/auth.ts — Token exchange