swig-idp-sdk and currently ships as
@swig-wallet/expo-idp-sdk.
What this SDK is for
- user sign-in with OAuth, email OTP, or SMS OTP
- browser or Expo-native auth flows
- isolated-host redirects that return a Swig session
- handing that session off to wallet or policy flows afterward
What this SDK is not for
- transaction preparation
- paymaster operations
- policy management in the developer portal
- direct protocol instruction building
Choose your path
| If you are building… | Start here |
|---|---|
| an Expo or React Native app | Expo and React Native Apps |
| a browser app with redirect-based auth | Browser Apps |
| the sign-in entrypoint itself | Choose an Auth Method |
| the session and security boundary | Sessions and Security |
What you get back
Every successful auth flow ends with a persisted Swig session. The session contains:configAddresswalletAddressroleIdauthFlow
Developer SDK
Use the session to continue into hosted wallet creation and transaction flows
Protocol SDK
Use the session if your app will integrate with Swig wallets directly

