Closed AyushBherwani1998 closed 4 months ago
The error in the console of popup:
WebSocket connection to 'wss://broadcast-server.tor.us/socket.io/?EIO=4&transport=websocket' failed: WebSocket is closed due to suspension.
Seems to be related to an issue with the service worker in CustomAuth.
If no problem can be found anywhere else this might be related to a bug resurfacing in safari.
Are you running the latest version, or perhaps an older versions?
It has been patched at least twice before for webkit: https://bugs.webkit.org/show_bug.cgi?id=143513 https://bugs.webkit.org/show_bug.cgi?id=228329
Update:
The issue is not in mpc-core-kit
, neither in CustomAuth
. The issue was that in order to use the popup flow, additional service worker worker code (sw.js) needs to be served with the app. However, this code was not updated in the example. Fixed in https://github.com/Web3Auth/web3auth-core-kit-examples/pull/607.
Nice find!
Credits go to @ieow ;)
Description
Not able to login in Safari browser when using loginWithOauth with popup as uxMode. It initiates the login, and after login, it's not able to redirect properly. On the other hand, same works fine on the Chrome browser.
Screen-recording
https://github.com/Web3Auth/mpc-core-kit/assets/34301187/855cf289-5321-4d9b-a292-ba90f0c7d460