Prerequisites
Before you begin, make sure you have:- Expo SDK 53 or later
- React Native (managed or bare workflow)
- TypeScript (recommended)
- A SocketFi application and Client ID from the SocketFi Dashboard
Recommended project structure
Production tips
- Test on physical devices. Passkey prompts and deep-link callbacks behave differently in simulators. Always validate your auth and transaction flows on real iOS and Android hardware before shipping.
- Test on both iOS and Android. Deep-link handling has platform-specific edge cases — cover both in your QA pass.
- Handle offline gracefully. Mobile devices lose connectivity frequently. Detect the network state and disable transaction requests when offline rather than letting them fail silently.
- Verify tokens server-side. Use
@socketfi/server’sverifyAuth()to validatesocketfiAccessTokenin your API before granting access to protected resources. - Monitor authentication and transaction failures. Pipe
onErrorevents to your crash/observability provider so you can detect regressions in the auth flow after updates.