DApp is running on localhost but not when I deploy my code

web3auth versions →
@web3auth/base”: “^6.1.7”,
@web3auth/modal”: “^6.1.7”,

Failed to connect with openlogin provider TypeError: f(…).createHash is not a function
at E (index.ts:70:16)
at D (index.ts:246:22)
at async $ (webAuthnShareResolver.ts:38:24)
at async W.createSession (openloginSessionManager.ts:44:11)
at async Nn.getLoginId (OpenLogin.ts:257:5)
at async Nn.login (OpenLogin.ts:160:11)
at async $n.connectWithProvider (openloginAdapter.ts:254:55)
at async $n.connect (openloginAdapter.ts:130:7)
at async ib.connectTo (noModal.ts:229:11)
at async qv. (modalManager.ts:301:7)

why am I getting this error ?

@gaurav1 Thanks for reaching out.

Which SDK are you using?
What platform?
What login provider?

We have not got any response from you. If you still need help, do reply.

You may join our upcoming community call - Web3Auth Community Call #4 · Zoom · Luma

We are seeing the same error. As with previous post, this does not happen locally, but when deployed remotely it fails. In particular I am trying to log in with Google.

Deps below.

"dependencies": {
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "@types/jest": "^27.5.2",
    "@types/node": "20.2.5",
    "@types/react": "^18.2.25",
    "@types/react-dom": "^18.2.11",
    "@web3auth/ethereum-provider": "^7.0.2",
    "@web3auth/modal": "^7.0.3",
    "eth-rpc-errors": "^4.0.3",
    "ethers": "^6.7.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "typescript": "^4.9.5",
    "userop": "^0.3.3",
    "web-vitals": "^2.1.4",
    "web3": "^4.1.2"
  }

Please share the web3auth initialization code snippet and also the connectTo() snippet.

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