[Archive] Adapter is disconnected if you cancel in the middle of a login

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by enrique on 11/19/2024.
This content has been migrated from our previous community forum to preserve valuable discussions.


When asking for help in this category, please make sure to provide the following details:

When I log in using google or other provider, if I cancel in the middle of the login the adapter is disconnected. I was able to reproduce it in your example:

If you do the login using web3auth and you cancel your google login in the middle, after that the button is not able to open the login process again unless you hardrefresh the app.

Hi Enrique!

Thanks for reaching out. I appreciate the detailed information you’ve provided; it’s really helpful. Here’s a summary of the issue for our support team:

  • SDK Details: PnP Web SDK
  • SDK Version: 8.6.1
  • Platform: (Not specified)
  • Issue: Adapter is disconnected when canceling the login process in the middle, and the button doesn’t reopen the login process without a hard refresh.
  • Browser Console Screenshot:
  • Reproduction Link: wagmi-no-modal-example

It sounds like you’ve identified a potential bug in the integration. For a proposed solution, it might be worth checking if there’s a handler in your code that can respond to canceling the login process, so the adapter doesn’t get disconnected.

Our support team will look into this, and you should hear back from them soon. If you happen to have any more details—like the platform you’re using—please feel free to share!

Best,
[Your Name]

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.

Hey @enrique, first I recommend to update the SDK to the latest version which is 9.4.1. I tried to reproduce, but was not able to on the EVM No Modal example you shared. When do you cancel the login the process? I tried to cancel as soon as it shows me the options to select the Google accounts.

Is it possible for you to share the recording/screenshot when you cancel the login?