Initialization
SDK does not initialize
- Verify you are calling
init()with a validpartnerId:
- Check the browser console for errors. A network failure to load the AIR Kit iframe will surface here.
- Ensure you are using a supported browser (Chrome, Firefox, Safari, Edge — latest versions).
”Partner ID not found” error
- Confirm the Partner ID in the Developer Dashboard matches what you pass to
init(). - Check that you are using the correct environment. Sandbox and Production have different Partner IDs.
Login
Login dialog does not appear
- The SDK opens an iframe for login. If it doesn’t appear:
- Check that
Content-Security-Policyheaders allowframe-srcfrom*.air3.com. - Check for CSS
z-indexconflicts — the iframe may be behind other elements. - Disable browser extensions that block iframes or popups.
- Check that
Login succeeds but user data is missing
login()returns anAirLoginResultcontainingtokenand account information. If fields are missing, verify your Partner JWT includes the expected claims.- If using Custom Auth (BYO), ensure
emailis included in the Partner JWT.
”Session expired” after page refresh
- By default, AIR Kit auto-restores sessions for 30 days. If sessions expire immediately:
- Check that
skipRehydrationis not set totruein yourinit()options. - Verify cookies and local storage are not being cleared by your app or browser settings.
- Check that
Session rehydration fails silently
- Call
isLoggedInafterinit()to check if rehydration succeeded. - If the session cannot be restored (expired, corrupted),
isLoggedInreturnsfalse. Calllogin()to start a new session.
Flutter-specific
SDK not loading on iOS
- Ensure your
ios/Runner/Info.plistincludes the required URL schemes and capabilities. - Check the Installation guide for iOS-specific configuration.
SDK not loading on Android
- Verify the minimum SDK version in
android/app/build.gradlemeets the requirement. - Ensure internet permission is declared in
AndroidManifest.xml.
wagmi connector
Connector not appearing in wagmi
- Ensure
@mocanetwork/airkit-connectoris installed and the connector is added to your wagmi config:
isMocaNetwork is undefined
- Cast the connector to the correct type:
Still stuck?
- Check the AIR Kit release notes for known issues in your SDK version.
- Join our Discord for community support.