Skip to main content
For mobile apps, the IDP SDK is a provider plus hook API.

Main integration surface

Use:
  • SwigIdpProvider
  • useSwigIdp()
The hook exposes:
  • startOAuth()
  • startEmailOtp()
  • startSmsOtp()
  • listProviders()
  • getSession()
  • logout()

Basic shape

What the provider handles

  • opening the isolated host in a system auth session
  • parsing the deep-link callback
  • persisting the returned Swig session
  • exposing auth state through isReady, isAuthenticated, and authPhase

Mobile-specific requirements

  • redirectUri must be configured
  • auth runs through expo-web-browser system auth sessions
  • session persistence defaults to expo-secure-store
  • the default network is devnet unless you override network

Supported mobile boundary

Open the isolated host through a system auth session. This keeps the auth page outside the host app’s inspection boundary.