Error Invalid Url when redirected from android web app

Error Invalid Url when redirected from android web app.
However it is running on ios web app which is builded from the same code on Capacitor.js

  • SDK Version:
    @web3auth/base”: “^5.2.0”,
    @web3auth/no-modal”: “^5.2.0”,
    @web3auth/openlogin-adapter”: “^5.2.0”,
    @web3modal/standalone”: “^2.4.1”,
  • Platform: Android, Capacitor.js, React.js
  • Browser Console Screenshots:

when redirected external browser

Please provide the Web3Auth initialization and login code snippet below:

const web3auth = new Web3AuthNoModal({
    clientId: API_KEY.WEB3AUTH,
    web3AuthNetwork: "testnet", 
    chainConfig: { chainNamespace: CHAIN_NAMESPACES.OTHER },

  const adapter = new OpenloginAdapter({
    loginSettings: {
      mfaLevel: "none",
    adapterSettings: {
      uxMode: "redirect",
      redirectUrl: dynamiclink,


  await web3auth.init()

  const web3authProvider = await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, { loginProvider })

@samuel Thanks for your recent communication.

Your issue has been forwarded to our team and we will get back with further updates once more information becomes available.

And this is errors before redirected from web app

Have you specified the web3AuthNetwork parameter during the Web3Auth No-Modal initialization ? I’ll paste a snippet here for your reference on where should it go. Please mention the network you are on Testnet, Mainnet, etc whichever you have setup up on the dashboard should match with the network in your code too.

const web3auth = new Web3AuthNoModal({
  clientId: "", // Get your Client ID from Web3Auth Dashboard
  chainConfig: {
    chainNamespace: CHAIN_NAMESPACES.EIP155,
    chainId: "0x1",
    displayName: "Ethereum Mainnet",
    blockExplorer: "",
    ticker: "ETH",
    tickerName: "Ethereum",
    rpcTarget: "", // This is the mainnet RPC we have added, please pass on your own endpoint while creating an app
  web3AuthNetwork: "mainnet", // mainnet, aqua,  cyan or testnet

I’ve modified the code in the body.

Are you still facing any issues?

yes, i am trying to change options, but still facing the same issue

Please use Cyan and check

it has same error,

when i use ‘testnet’, it is redirected at

but docs say it will be use

is it right?

For Web3Auth PnP Web SDKs

If you are using chainNamespace: "other" while initializing or Web3AuthNoModal with the OpenloginAdapter, you need to add the privateKeyProvider to the OpenLogin instance and your rpcTarget in chainconfig

const chainConfig = {
    chainId: "0x1",
    chainNamespace: CHAIN_NAMESPACES.OTHER,
    rpcTarget: "",

const web3auth = new Web3AuthNoModal({
  web3AuthNetwork: "cyan",

const privateKeyProvider = new CommonPrivateKeyProvider(config: chainConfig);

const openloginAdapter = new OpenloginAdapter({
  adapterSettings: {...},
  mfaSettings: {...},
  loginSettings: {...},

provider = await web3auth.connectTo(
    loginProvider: "google",

// use this provider to export the private key of the userr

With V6, it’s mandatory to add rpcTarget & chainId in the chainConfig object.

I was able to log in with v6, but redirected url has just sessionId, so I am hard to get login result in capacitor app.

And I am hard to find in docs how to handle this sessionId.

So i am using v5 now, i can get results of redirected base64 code with v5 on iOS.
My codes are working fine on iOS.

@vjgee How can I get a user’s info and privateKey when redirected to the webview app with sessionId using v6 openlogin?

You can refer to this documentation: