# \[Archive\] Connect fail using myself verify while running SFA Sample

**URL:** <https://builder.metamask.io/t/archive-connect-fail-using-myself-verify-while-running-sfa-sample/1182>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [October 23, 2024, 1:00pm UTC](https://builder.metamask.io/t/archive-connect-fail-using-myself-verify-while-running-sfa-sample/1182 "2024-10-23T13:00:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![e13620](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@e13620](https://builder.metamask.io/u/e13620)\
**Post date:** [October 23, 2024, 1:00pm UTC](https://builder.metamask.io/t/archive-connect-fail-using-myself-verify-while-running-sfa-sample/1182/1 "2024-10-23T13:00:02Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **e13620** on 10/23/2024.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

- SDK Version: SFA
- Platform: Androk
- Verifier Name:“hzm-edge-test”  
Hi guys, I use SFAExample to test full process, code as following:

```auto
val idToken = JwtUtils.generateIdToken(TORUS_TEST_EMAIL)
sfaParams = SFAParams(Web3AuthNetwork.SAPPHIRE_DEVNET, "BM3fzH-l6pgCO9YSmpmHC9k1jQ080ckmr0rgVjsEPa_kZ1xnMSB33vPCZGjjyt8xAjtBpLUJoYzVbPrgI6wEExI", 86400, null, 0)
singleFactorAuth = SingleFactorAuth(sfaParams, this)
val idToken = JwtUtils.generateIdToken(TORUS_TEST_EMAIL)
 loginParams = LoginParams(TEST_VERIFIER, TORUS_TEST_EMAIL, idToken)
 val sfakey = singleFactorAuth.connect(loginParams, this.applicationContext)
 if (sfakey != null) {
            val text = "Public Address: ${sfakey.getPublicAddress()} , Private Key: ${sfakey.getPrivateKey()}"
            tv.text = text
}

```

if TEST\_VERIFIER = “torus-test-health”, it’s work well, can get correct key infromation.  
But if TEST\_VERIFIER = “hzm-edge-test”, which verifier was created by myself in the Custom Authentication, it will fail, error as follow:

```auto
Caused by: retrieve or import share failed
   at org.torusresearch.torusutils.helpers.NodeUtils.retrieveOrImportShare(NodeUtils.java:318)
   at org.torusresearch.torusutils.TorusUtils.retrieveShares(TorusUtils.java:131)
   at com.web3auth.singlefactorauth.SingleFactorAuth.getTorusKey(SingleFactorAuth.kt:114)
   at com.web3auth.singlefactorauth.SingleFactorAuth.connect(SingleFactorAuth.kt:122)
   at com.web3auth.sfaexample.MainActivity.getSFAKey(MainActivity.kt:60)

```

Looking forward to your reply！  
Thank a lot firstly

---

<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:** [October 23, 2024, 1:04pm UTC](https://builder.metamask.io/t/archive-connect-fail-using-myself-verify-while-running-sfa-sample/1182/2 "2024-10-23T13:04:03Z")

</div>

Hi Zongming,

Thank you for reaching out with your question! It seems you’re encountering an issue while using the SFA Android SDK for custom authentication with your verifier “hzm-edge-test.”

Here’s a summary of the details you provided that our support team will need:

- **SDK Details** : SFA Android SDK
- **SDK Version** : SFA
- **Platform** : Android
- **Verifier Name** : “hzm-edge-test”

### Code Snippet:

You shared the following code:

```kotlin
val idToken = JwtUtils.generateIdToken(TORUS_TEST_EMAIL)
sfaParams = SFAParams(Web3AuthNetwork.SAPPHIRE_DEVNET, "BM3fzH-l6pgCO9YSmpmHC9k1jQ080ckmr0rgVjsEPa_kZ1xnMSB33vPCZGjjyt8xAjtBpLUJoYzVbPrgI6wEExI", 86400, null, 0)
singleFactorAuth = SingleFactorAuth(sfaParams, this)
val idToken = JwtUtils.generateIdToken(TORUS_TEST_EMAIL)
loginParams = LoginParams(TEST_VERIFIER, TORUS_TEST_EMAIL, idToken)
val sfakey = singleFactorAuth.connect(loginParams, this.applicationContext)

```

### Error Message:

The error message indicates a failure with the `retrieveOrImportShare` method.

### Proposed Solution:

Could you please check the following?

- Ensure that the verifier “hzm-edge-test” has been properly set up in your Custom Authentication.
- Double-check the login parameters being passed when using your custom verifier.

If the issue persists, could you also provide:

- A screenshot of any relevant browser console errors or logs.
- Any additional information on how the custom verifier “hzm-edge-test” was created.

This information will help our team in diagnosing the problem further. We appreciate your patience, and we’re here to help!

Looking forward to your reply! Thank you!

> 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.

---

<div class="post-metadata">

**Author:** ![e13620](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@e13620](https://builder.metamask.io/u/e13620)\
**Post date:** [October 23, 2024, 1:09pm UTC](https://builder.metamask.io/t/archive-connect-fail-using-myself-verify-while-running-sfa-sample/1182/3 "2024-10-23T13:09:25Z")

</div>

Verifier as following information：

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/fc94b15044ab349bf8b0075607f395976be7dfe0.png)
image1956×798 63.2 KB
](https://web3auth.io/community/uploads/default/original/2X/5/59ecd9f06df72435c8953c1cb01a68363da3b3f7.png "image")
  

[![image](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/b2661d5998414a998b88ed5106006d9b8d576a28.png)
image2257×652 63.1 KB
](https://web3auth.io/community/uploads/default/original/2X/4/4bcc976a2a5bec353dfb7b815d1585558999c8c7.png "image")

---

<div class="post-metadata">

**Author:** ![shahbaz](https://yyz1.discourse-cdn.com/flex011/user_avatar/builder.metamask.io/shahbaz/32/1527_2.png) [@shahbaz](https://builder.metamask.io/u/shahbaz)\
**Post date:** [October 28, 2024, 8:04am UTC](https://builder.metamask.io/t/archive-connect-fail-using-myself-verify-while-running-sfa-sample/1182/4 "2024-10-28T08:04:35Z")

</div>

Hey @e13620,

The verifier you created is of the Email\_Passwordless type. Unfortunately, the SFA SDK won’t work simply by changing the verifier name. The `TORUS_TEST_EMAIL` uses a verifier that is of custom verifier type, where the JWT is generated during the request and then provided to the SFA SDK to continue the login process.

Could you please share your use case and what you are trying to implement?

Thank you
