Skip to main content

moonx_flutter 0.1.0-beta.7 copy "moonx_flutter: ^0.1.0-beta.7" to clipboard
moonx_flutter: ^0.1.0-beta.7 copied to clipboard

MoonX embedded wallets and authentication for Flutter apps on iOS and Android. Headless, so your app owns the UI, with native passkeys and MPC signing.

0.1.0-beta.7 #

  • Commerce sandbox funding now uses Commerce's mainnet staging deployment. parseCommerceSession accepts network: "staging" for sandbox sessions, and no longer accepts "test". Matches the React Native SDK.

0.1.0-beta.6 #

  • attachOAuth now links Google or Apple to the signed-in account. It used to start a sign-in. It begins the link, asks for a passkey or email code first when the account has one (PresenceScopes.linkLoginMethod), and redeems the provider's token through verifyOAuth under the current session. Matches useAttachOAuth in the React Native SDK.
  • detachOAuth removes a Google or Apple sign-in by its id in the user's linked_accounts, with the same step-up first (PresenceScopes.unlinkLoginMethod). It throws last_login_method rather than leave the account with no way to sign in. On success the user's other sessions end and the user is refreshed.

0.1.0-beta.5 #

  • sendEmailChangeCode, confirmEmailChangeCurrentCode and confirmEmailChangeNewCode change the signed-in account's email with two codes: one to the current address, which lists every app the change affects, then one to the new address. Matches useChangeEmail in the React Native SDK.

0.1.0-beta.4 #

  • sessionResumeStorage restores a session after iOS clears the WebView's storage, as in the React Native SDK. The SDK binds a P-256 key from that storage to the session and later signs a single-use server challenge with it. The key is a credential; keep it in device-only storage. Logout deletes it first, a login forgets the previous account's session, and a key left by an earlier installation never resumes. Requires session resume to be enabled for the app.
  • Adds a shared_preferences dependency for the installation id and the logout marker, which must not survive an uninstall.

0.1.0-beta.3 #

  • sessionStatus (restoring, authenticated, signedOut, error), sessionError and retrySession() report session restoration separately from ready, as in the React Native SDK. A failed check keeps the last confirmed isAuthenticated and user, and no longer advances revalidatedAt. Only five checks in a row that find no session sign out.
  • Sign-in, logout and profile updates apply only while no newer sign-in or logout has started, so a slow reply cannot restore a session the user ended. A new loginWithOAuth attempt makes earlier ones fail with session_changed.

0.1.0-beta.2 #

  • getCustodyState({waitForClaim}) reports the custody state of the user's account (CustodyStateResult). With waitForClaim, it resolves once the iframe has claimed a pre-generated account, and throws claim_failed if the claim did not commit.
  • Protocol constants for session resume and prepareSigning, kept in step with the React Native SDK. prepareSigning itself is not ported yet.

0.1.0-beta.1 #

  • Initial headless Flutter SDK at parity with @moon-x/react-native-sdk 0.20.x: email OTP, OAuth and MoonPay customer-token sign-in, passkeys, identity-backed account recovery, wallet create/import/bulk import/export, ephemeral signers, funding, and EVM, Solana, Tron and Bitcoin signing.
  • Requires Flutter 3.35 / Dart 3.9 or later, iOS 16.0 or later, and Android API 27 or later with Android System WebView 111 or later.
  • wallets.findOrCreate returns the first existing wallet on a chain or creates one, sharing concurrent calls within a login, as in the React Native SDK's findOrCreateWallet.
  • Hosts the iframe with Flutter's webview_flutter. Builds on Android Gradle Plugin 8 and 9, and supports Swift Package Manager on iOS. A small Android plugin reads the WebView version and keeps the app alive if the WebView renderer crashes.
0
likes
150
points
497
downloads

Documentation

API reference

Publisher

verified publishermoonpay.com

Weekly Downloads

MoonX embedded wallets and authentication for Flutter apps on iOS and Android. Headless, so your app owns the UI, with native passkeys and MPC signing.

Homepage

Topics

#wallet #web3 #mpc #passkeys

License

MIT (license)

Dependencies

flutter, flutter_secure_storage, flutter_web_auth_2, http, passkeys, pointycastle, shared_preferences, webview_flutter, webview_flutter_android, webview_flutter_wkwebview

More

Packages that depend on moonx_flutter

Packages that implement moonx_flutter