moonx_flutter 0.1.0-beta.7
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.
parseCommerceSessionacceptsnetwork: "staging"for sandbox sessions, and no longer accepts"test". Matches the React Native SDK.
0.1.0-beta.6 #
attachOAuthnow 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 throughverifyOAuthunder the current session. MatchesuseAttachOAuthin the React Native SDK.detachOAuthremoves a Google or Apple sign-in by its id in the user'slinked_accounts, with the same step-up first (PresenceScopes.unlinkLoginMethod). It throwslast_login_methodrather 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,confirmEmailChangeCurrentCodeandconfirmEmailChangeNewCodechange 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. MatchesuseChangeEmailin the React Native SDK.
0.1.0-beta.4 #
sessionResumeStoragerestores 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_preferencesdependency for the installation id and the logout marker, which must not survive an uninstall.
0.1.0-beta.3 #
sessionStatus(restoring,authenticated,signedOut,error),sessionErrorandretrySession()report session restoration separately fromready, as in the React Native SDK. A failed check keeps the last confirmedisAuthenticatedanduser, and no longer advancesrevalidatedAt. 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
loginWithOAuthattempt makes earlier ones fail withsession_changed.
0.1.0-beta.2 #
getCustodyState({waitForClaim})reports the custody state of the user's account (CustodyStateResult). WithwaitForClaim, it resolves once the iframe has claimed a pre-generated account, and throwsclaim_failedif the claim did not commit.- Protocol constants for session resume and
prepareSigning, kept in step with the React Native SDK.prepareSigningitself is not ported yet.
0.1.0-beta.1 #
- Initial headless Flutter SDK at parity with
@moon-x/react-native-sdk0.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.findOrCreatereturns the first existing wallet on a chain or creates one, sharing concurrent calls within a login, as in the React Native SDK'sfindOrCreateWallet.- 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.