# \[Archive\] SFA Flutter SDK and Smart Accounts

**URL:** <https://builder.metamask.io/t/archive-sfa-flutter-sdk-and-smart-accounts/992>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [July 15, 2025, 11:09pm UTC](https://builder.metamask.io/t/archive-sfa-flutter-sdk-and-smart-accounts/992 "2025-07-15T23:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiomartell](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@sergiomartell](https://builder.metamask.io/u/sergiomartell)\
**Post date:** [July 15, 2025, 11:09pm UTC](https://builder.metamask.io/t/archive-sfa-flutter-sdk-and-smart-accounts/992/1 "2025-07-15T23:09:01Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **sergiomartell** on 7/16/2025.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

When asking for help in this category, please make sure to provide the following details:

- SDK Version: 7.0.0
- Platform: Android & iOS
- Browser Console Screenshots:
- If the issue is related to Custom Authentication, please include the following information (optional):
  - Verifier Name:
  - JWKS Endpoint:
  - Sample idToken (JWT):

Also, kindly provide the Web3Auth initialization and login code snippet below. This will help us better understand your issue and provide you with the necessary assistance.

```plaintext
Future<void> _initializeSingleFactorAuth() async {
    try {
      debugPrint('Starting Web3Auth Single Factor Auth initialization...');
  // Get Web3Auth client ID from configuration
  final clientId = AppConfig.web3AuthClientId;
  debugPrint('SFA client ID: ${clientId.substring(0, 8)}...');

  if (clientId.isEmpty) {
    debugPrint('Web3Auth client ID is empty, aborting initialization');
    isSFAInitialized.value = false;
    return;
  }

  // Determine network based on environment
  Web3AuthNetwork network;
  switch (AppConfig.web3AuthNetworkConfig) {
    case 'mainnet':
      network = Web3AuthNetwork.sapphire_mainnet;
      break;
    case 'testnet':
    default:
      network = Web3AuthNetwork.sapphire_devnet;
      break;
  }
  debugPrint('Using SFA network: $network');

  // Prepare smart account configuration if enabled
  _buildSmartAccountConfig();

  // Initialize SFA with proper configuration including smart accounts
  debugPrint(
    'Calling SingleFactorAuth.init() with smart account config...',
  );
  await _singleFactorAuth.init(
    Web3AuthOptions(
      //accountAbstractionConfig: smartAccountConfig,
      clientId: clientId,
      network: network,
      sessionTime: 86400, // 24 hours
      // Note: accountAbstractionConfig may need to be added when the package supports it
      // For now, we'll handle smart account logic in our service layer
    ),
  );
  debugPrint('SingleFactorAuth.init() completed successfully');

  isSFAInitialized.value = true;
  debugPrint('SFA initialization completed successfully');

  // Check if user has an existing session
  await _checkExistingSession();
} catch (e) {
  debugPrint('SFA initialization failed: $e');
  isSFAInitialized.value = false;

  // Only throw if it's a real initialization error, not a session error
  if (e.toString().contains('No user found') ||
      e.toString().contains('No session found')) {
    debugPrint(
      'No existing session found - this is expected for new users',
    );
    isWalletReady.value = false;
  } else {
    throw Exception('Failed to initialize Single Factor Auth: $e');
  }
}

}

```

We need to setup Smart Accounts in our wallet using flutter SFA, we are connecting successfully to web3auth but Web3AuthOptions in the SFA package doesn’t allow for “accountAbstractionConfig” and the documentation for Smart Accounts doesn’t cover Flutter. Are Smart Accounts supported in Flutter SFA?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![w3abot](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@w3abot](https://builder.metamask.io/u/w3abot)\
**Post date:** [July 15, 2025, 11:10pm UTC](https://builder.metamask.io/t/archive-sfa-flutter-sdk-and-smart-accounts/992/2 "2025-07-15T23:10:40Z")

</div>

Thank you for providing a detailed description, code snippet, and your context. Here’s a summary of your query for the support team:

* * *

### **Issue Summary**

- **SDK:** SFA Flutter SDK
- **SDK Version:** 7.0.0
- **Platform:** Android & iOS
- **Initialization Code Provided:** Yes (see above)
- **Issue:** You want to enable Smart Accounts (Account Abstraction) in your wallet using the Flutter SFA SDK. However, the `Web3AuthOptions` in the SFA Flutter package does not expose the `accountAbstractionConfig` parameter, and the documentation does not mention Flutter support for Smart Accounts.
- **Question:** Are Smart Accounts (Account Abstraction) currently supported in the SFA Flutter SDK? If not, is there a roadmap or workaround?

* * *

### **Additional Notes**

- You are able to connect to Web3Auth successfully.
- You have attempted to prepare a smart account config, but cannot pass it to the SDK due to missing support in the options interface.
- You referenced documentation for other platforms (Web/React/Vue) where `accountAbstractionConfig` is available, but this is not the case for Flutter.

* * *

### **Proposed Solution / Current Status**

Based on the [official documentation for SFA Flutter SDK](https://web3auth.io/docs/sdk/flutter/sfa/), as of now, **Smart Accounts (Account Abstraction) are not yet supported in the SFA Flutter SDK**. The `accountAbstractionConfig` parameter is available in Web and some other SDKs, but not in Flutter at this time.

- **Documentation Reference:** [Web3Auth Flutter SFA SDK Docs](https://web3auth.io/docs/sdk/flutter/sfa/)
- **Smart Accounts Overview:** [Smart Accounts Docs](https://web3auth.io/docs/smart-account/introduction/)
- **Current Limitations:** The documentation and current SDK implementation do not mention Flutter support for Smart Accounts or Account Abstraction configuration.

* * *

### **Next Steps / Action Items**

- **For the Support Team:** Please confirm if there is a planned release or workaround for enabling Smart Accounts in the SFA Flutter SDK, or if there’s any beta/experimental support available.
- **For Sergio:** If you have any additional requirements or constraints, please share them here so the team can provide the most relevant guidance.

* * *

Thank you for your clear and detailed question! The support team will follow up with the latest information or roadmap details. If you have any more context or requirements, feel free to add them.

> Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

> Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. [Web3Auth Developer Office Hours](https://web3auth.io/community/t/web3auth-developer-office-hours/8777)

---

<div class="post-metadata">

**Author:** ![maharshi](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/maharshi/32/1525_2.png) [@maharshi](https://builder.metamask.io/u/maharshi)\
**Post date:** [July 30, 2025, 12:43pm UTC](https://builder.metamask.io/t/archive-sfa-flutter-sdk-and-smart-accounts/992/3 "2025-07-30T12:43:56Z")

</div>

Hey @sergiomartell  
Can you please join tomorrow’s Office Hours?  
We would be able to give you the dedicated attention this issue needs.

 ![](https://web3auth.io/community/letter_avatar_proxy/v4/letter/m/ce7236/48.png)[Web3Auth Developer Office Hours](https://web3auth.io/community/t/web3auth-developer-office-hours/8777) [Announcements](https://builder.metamask.io/community/c/announcements/5)

> Stuck somewhere in the integration? Join the biweekly MetaMask Office Hours & get help from our team. 
> 
> Before following the below steps, make sure your discord username is not a generic one (anything of the format name\_{any 6 digits}). If it is, follow these steps to change your username: [https://support.discord.com/hc/en-us/articles/213480948-How-do-I-change-my-Username](https://support.discord.com/hc/en-us/articles/213480948-How-do-I-change-my-Username)  
> The above step is mandatory to if you username is a generic one.  
> First and Third Thursday every month, 10:00 AM EST  
> Make sur…
