web3.unity icon indicating copy to clipboard operation
web3.unity copied to clipboard

Intermittent login error with Web3Auth in WebGL build

Open juans-chainsafe opened this issue 1 year ago • 0 comments

Describe the bug When I was testing https://github.com/ChainSafe/web3.unity/pull/1037 I got this error only the first time and then I wasn't able to reproduce it again. But now it happen 3 times in a row to me.

Basically, when the Web3Auth modal appears to login and says "Redirecting back to..." you can see in the console a error that says "login popup has been closed by the user" which is not true, I didnt close it. After is closed, you get the Login screen and nothing happens.

Steps Steps to reproduce the behavior:

  1. Build with WebGL
  2. Use the scene [SampleLogin - Web3Auth]
  3. Login with [Web3Auth]
  4. If you don't get the error, logout and retry

Expected behavior Login is always successful

Console errors

openlogin-adapter:2 Failed to connect with openlogin provider LoginError: login popup has been closed by the user,
    at Tr.fromCode (openlogin-adapter:2:408268)
    at Tr.popupClosed (openlogin-adapter:2:408634)
    at jr.<anonymous> (openlogin-adapter:2:421303)
    at o.emit (openlogin-adapter:2:280720)
    at openlogin-adapter:2:411188

Desktop (please complete the following information):

  • Chainsafe SDK version: [main]
  • Unity Version: [2022.1]
  • Platform: [WebGL]
  • Operating System: [Mac]

juans-chainsafe avatar Jul 05 '24 14:07 juans-chainsafe