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? |
Beta Was this translation helpful? Give feedback.
-
Hey I am also looking for this option |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Wait that means I cannot get userInfo if I use wagmi-connector implementation? :) |
Beta Was this translation helpful? Give feedback.
-
try this import { useAccount } from 'wagmi'
const account = useAccount()
const connector = account.connector
const web3Auth = connector.options.web3AuthInstance
await web3Auth.getUserInfo() |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions