Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Social Logins Not Setting address and isConnected Correctly #49

Open
tylerpashigian opened this issue Jan 28, 2023 · 3 comments
Open

Social Logins Not Setting address and isConnected Correctly #49

tylerpashigian opened this issue Jan 28, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tylerpashigian
Copy link

  • I'm submitting a
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [X] question about how to use this project

  • Summary
    When logging in via the social logins (Google) in the MagicAuthConnector, my page is reloading when coming back from the Google SSO auth flow. Despite having autoConnect set to true on my wagmi connector, the address and isConnected are coming back as undefined and false, respectively. When clicking the button that triggers my MagicAuthConnector again, my account and isConnected are set correctly without going back into the SSO flow. This does not happen when connecting via email (I assume since the page doesn't reload?). Does anyone have any idea how to ensure these values are set correctly when coming back from the google SSO flow?

  • Version

    • @everipedia/wagmi-magic-connector version: ^0.9.1
    • wagmi version: ^0.9.0 (cant upgrade, limited because rainbowkit has issues with the latest version of wagmi)
@tylerpashigian tylerpashigian changed the title Social Logins Social Logins Not Setting address and isConnected Correctly Jan 28, 2023
@Royal-lobster Royal-lobster added the bug Something isn't working label Feb 4, 2023
@Royal-lobster
Copy link
Member

Is this still a issue with @everipedia/wagmi-magic-connector@0.12.1 ?

@tylerpashigian
Copy link
Author

Is this still a issue with @everipedia/wagmi-magic-connector@0.12.1 ?

Yeah, I just upgraded and I still seem to have to trigger the login flow again in order to get wagmi to detect I am connected/authenticated. What are the dependency versions? (ex. wagmi, ethers, etc). Im wondering if I also need to get upgrade those versions in order for the updates to reflect correctly.

@Royal-lobster
Copy link
Member

Is this still a issue with @everipedia/wagmi-magic-connector@0.12.1 ?

Yeah, I just upgraded and I still seem to have to trigger the login flow again in order to get wagmi to detect I am connected/authenticated. What are the dependency versions? (ex. wagmi, ethers, etc). Im wondering if I also need to get upgrade those versions in order for the updates to reflect correctly.

Oh yes, wagmi needs to be latest 1.0.5, and the package no longer needs ethers, instead it relies on viem. please check out the migration guide at wagmi, https://wagmi.sh/core/migration-guide

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants