Accessing getUserInfo() with the wagmi-connector plugin #1025
Replies: 5 comments 5 replies
|
Hey @sultanpeyek Thanks for the question. Sorry for not getting back to you earlier on discord. I looked around the SDK, as I see currently that function is not exposed because of wagmi limitations. @himanshuchawla009 is it possible for us to expose that function in the connector? |
|
Hey I am also looking for this option |
|
I’m also looking for this functionality as well. The only way I could get this to work is by reintroducing the web3authcontext like the example docs and then passing the web3auth instance created for WAGMI in the context provider. You basically can only get user info once tho after successful signup but I believe it also interferes with some other functionality. |
|
Wait that means I cannot get userInfo if I use wagmi-connector implementation? :) |
|
try this import { useAccount } from 'wagmi'
const account = useAccount()
const connector = account.connector
const web3Auth = connector.options.web3AuthInstance
await web3Auth.getUserInfo() |
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone and @yashovardhan,
I have a question about the interaction between wagmi-connector and web3auth. I was able to connect a wallet to web3auth using the wagmi-connector plugin, but I'm not sure how to call the
await web3Auth?.getUserInfo()command. Could anyone provide some guidance on this?Thank you very much.
All reactions