Flutter SDK + Firebase JWT integration issue

What is the status of this issue? This is currently impacting our production release with over 10k+ users having trouble logging in on our platform.

hi team, any update?

Hey, looking into the issue. We’ll get back to you in couple of hours.

1 Like

Hey, I tried our example for Firebase. It seems to work fine. I tried with multiple versions of the Flutter SDK.

Example: web3auth-pnp-examples/flutter/flutter-firebase-example at main · Web3Auth/web3auth-pnp-examples · GitHub

Can I please get more details

  1. Your Web3Auth Client id
  2. Your Web3Auth Network
  3. Your verifier name
  4. Which login method you are using in the Firebase?
  5. Does it happen on Android, iOS or both?
  1. Your Web3Auth Client id
    BOeEyYLFBO4YRJTAs6qo0Qjti_UONpSTQ5_yFIIBA8bEnSQxMWPSeBvgoj3ihsIRv2mcda5vF2hV27_mq1w356s
  2. Your Web3Auth Network
    Network.cyan
  3. Your verifier name
    sinbad-prod
  4. Which login method you are using in the Firebase?
    jwt
  5. Does it happen on Android, iOS or both?
    both

Can you please try this code snippet for login.

result = await Web3AuthFlutter.login(
        LoginParams(
          loginProvider: Provider.jwt,
          extraLoginOptions: ExtraLoginOptions(
            id_token: idToken,
          ),
      ),
  );

We have removed the domain, as it shouldn’t be required. Also, using the Provider enum from the SDK. Also, please check once that the ENV variables are also getting picked properly, as it can also be one of the issue.


it’s just hanging on the call, no response from the login call.

Do you see any error, it doesn’t execute the login method completely?

yeah it just hangs no response coming back

Can I enable a flag to debug/verbose?

It’s not possible, since it uses Platform Channel, and we don’t have a flag to enable it. Can you inspect the js element using Safari browser for iOS Simulator, or inspect devices using the Chrome for Emulator, and get the URL that it opened?

I tried with Cyan as well, it doesn’t seem to have any issue for our example.


that’s all I was able to grab

@Ayush Can we message you internally to share the callback URL?

You can share in the Community portal DM. I’m sending you a message.

I replied to your dm

Looks like the the JWT you shared doesn’t match with the verifier details you shared. Like iss, aud doesn’t match with the Cyan verifier you shared. Please check the verifier details

Thats for the dev environment :man_facepalming:t4:

Can you see any logs in your end for our customer id and send it over. This debugging isn’t working.

I’ll check with team for logs. You can join our Office hours today at 9:00 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