Authentication Process
- Sign In: POST
/auth/signinwith phone → getaccessToken - Create OTP: POST
/auth/otp/create→ OTP sent via SMS - Validate OTP: POST
/auth/otp/validatewith OTP → getsessionToken - API Calls: Use
sessionTokenin Authorization header
Endpoints
Sign In
Create OTP
Validate OTP
Sign Out
Implementation (React Native)
Security Features
- Phone number validation (E.164 format)
- OTP expires in 5 minutes
- Single-use OTP codes
- Rate limiting on OTP requests
Error Codes
VALIDATION_ERROR: Invalid phone formatOTP_EXPIRED: OTP has expiredINVALID_OTP: Wrong OTP codeRATE_LIMITED: Too many requests