Can not login with X through Telegram Miniapp on Android device

Issue Summary:

  • Users cannot log in with X on an Android device through our Miniapp on Telegram. After clicking the login option, the process gets stuck on the second screen.

Steps to Reproduce:

  1. Open the Telegram Miniapp on an Android device.
  2. Select the option to log in with X.
  3. The “Authorize Web3Auth to access” screen appears.
  4. Click “Sign in.” The login process gets stuck on this screen and does not proceed further.

Environment:

  • Device: Android
  • Miniapp Platform: Telegram
  • Web3Auth Versions Used:

@web3auth/auth-adapter: ^9.5.4

@web3auth/base: ^9.5.4

@web3auth/ethereum-provider: ^9.5.4

@web3auth/no-modal: ^9.5.4

@web3auth/openlogin-adapter: ^8.12.4

@web3auth/solana-provider: ^9.5.4



Hi Tony,

Thanks for providing the details about the issue you’re facing. Here’s a quick summary for our support team:

  • SDK Details: Plug n Play
  • Platform: Telegram Miniapp on Android
  • Issue: Users cannot log in with X through Telegram Miniapp on Android; the login process gets stuck on the second screen after clicking “Sign in.”
  • Environment:
    • Device: Android
    • Miniapp Platform: Telegram
    • Web3Auth Versions Used:
      • @web3auth/auth-adapter: ^9.5.4
      • @web3auth/base: ^9.5.4
      • @web3auth/ethereum-provider: ^9.5.4
      • @web3auth/no-modal: ^9.5.4
      • @web3auth/openlogin-adapter: ^8.12.4
      • @web3auth/solana-provider: ^9.5.4
  • Images Provided: Yes, you’ve attached three images.

The support team will review your information and the images you’ve provided to assist you further. If there are any additional details you could share about the error messages or console logs, feel free to let us know!

In the meantime, if there’s anything specific you want to try or any workaround you’re considering, do share, and I’ll assist you as best as I can. :blush:

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

Thank you! Feel free to let me know when you need further information

Hey @haicake,

It looks like the Telegram Desktop environment may not fully support X login within Mini Apps. The in-app browser used in Telegram Desktop has known compatibility issues with certain authentication flows, including OAuth-based logins like Google and X.

Some developers have encountered similar issues where Telegram’s in-app browser restricts certain authentication methods due to security policies. A few discussions online also mention that Web Authentication API support is limited in the Telegram Mini App browser, which can impact login flows.

1 Like

Thanks for your answers, and how about the issue that can’t Login With X on Android device on Telegram Miniapp?

Hey @haicake,
That approach would likely run into the same issue. There’s no official indication that Telegram supports X login on android Telegram’s in-app browser or other restricted environments. From what we’ve observed, they intentionally limit this to encourage logins tied to Telegram’s identity system.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.