[Archive] User is unable to sign in through email as white screen is displayed after entering the OTP - Waited around 40 seconds

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by accounts1 on 9/3/2025.
This content has been migrated from our previous community forum to preserve valuable discussions.


Screenshot 2025-09-03 at 6.56.20 PM
Screenshot 2025-09-03 at 6.56.20 PM404×694 12.5 KB

SDK Version Number: “@web3auth/react-native-sdk”: “^8.1.0” Code Snippet:

const web3auth = new Web3Auth(WebBrowser, EncryptedStorage, {
      clientId: Config.WEB3AUTH_CLIENT_ID,
      redirectUrl: Config.LOGIN_REDIRECT_URL,
      network: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
      loginConfig: {
        google: googleLoginConfig,
        discord: discordLoginConfig,
        apple: appleLoginConfig
      },
      privateKeyProvider
    })
    await web3auth.init()
await web3auth.login({
        loginProvider: provider,
        redirectUrl: Config.LOGIN_REDIRECT_URL,
        mfaLevel: 'none',
        curve: 'secp256k1',
        extraLoginOptions
      })

Method of Login: Web3Auth’s built-in OTP flow

Thank you for the detailed report, Arun! Here’s a summary of your issue for the support team:


Issue Summary

  • SDK & Version:

    • SDK: @web3auth/react-native-sdk
    • Version: ^8.1.0
  • Platform: React Native (likely iOS/Android, please confirm if both or only one)

  • Login Method: Web3Auth’s built-in OTP flow (email or SMS passwordless)

  • Network: SAPPHIRE_DEVNET

  • Observed Issue:

  • Initialization & Login Code:

    const web3auth = new Web3Auth(WebBrowser, EncryptedStorage, {
      clientId: Config.WEB3AUTH_CLIENT_ID,
      redirectUrl: Config.LOGIN_REDIRECT_URL,
      network: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
      loginConfig: {
        google: googleLoginConfig,
        discord: discordLoginConfig,
        apple: appleLoginConfig
      },
      privateKeyProvider
    })
    await web3auth.init()
    await web3auth.login({
      loginProvider: provider,
      redirectUrl: Config.LOGIN_REDIRECT_URL,
      mfaLevel: 'none',
      curve: 'secp256k1',
      extraLoginOptions
    })
    
  • Extra Context:

    • The issue occurs specifically during OTP verification.
    • No mention of custom authentication or external provider (using built-in Web3Auth OTP).

Next Steps / Suggestions

1. Confirm Platform:
Is this issue observed on both iOS and Android, or only one? (This helps narrow down if it’s a platform-specific WebView or redirect issue.)

2. Redirect URL:
Double-check if Config.LOGIN_REDIRECT_URL is correctly registered in your Web3Auth dashboard and matches your app’s scheme.
See Redirect URL setup in docs

3. WebView/Browser:
Since OTP flow opens a browser modal, ensure your app has the correct permissions and can handle deep links/redirects back from the browser.

4. Debugging:

  • If possible, open the browser’s dev tools or check device logs for errors during the white screen.
  • Are there any console errors or network failures visible?

Request for Additional Info

  • Could you please confirm:
    • The value and format of your redirectUrl (e.g., myapp://auth)?
    • If the issue occurs on both iOS and Android?
    • If there are any errors in the browser console or device logs during the white screen?

Reference Docs:


Once you provide the above details, the support team will be able to assist you further. Thank you for your patience!

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