React Native SDK
React Native and Expo hooks for mobile OAuth authentication.
@wocha/react-native provides React Native and Expo hooks for Wocha authentication. Implements OAuth 2.0 authorisation code with PKCE as a public client — no client secret required.
Installation
pnpm add @wocha/react-nativeOr scaffold with the CLI
npx @wocha/cli init --framework react-nativeRecommended Expo peers:
Setup
Register a custom URL scheme in the Wocha Console (e.g. myapp://auth/callback).
Authentication flow
signIn()opens the system browser viaexpo-web-browser- User authenticates on the hosted login UI
- Deep link callback delivers the auth code
- SDK exchanges the code and stores tokens in
expo-secure-store
Hooks
UI components
Import from @wocha/react-native/components:
Learn more
- React Native SDK README
- React SDK — for web SPAs