Replies: 1 comment
-
Hey @gaiverrr I have replied to your gist, but sharing the code here for others to see if they ran into similar issue. const { Web3Auth } = await import('@web3auth/modal'); // <-- Use this package, since @web3auth/web3auth is deprecated now
const clientId = appConfig.webAuthClientId;
setIsLoading(true);
const web3AuthInstance = new Web3Auth({
chainConfig: currentChainConfig,
clientId,
});
const torusWalletAdapter = new TorusWalletAdapter({
adapterSettings: {
buttonPosition: 'bottom-left',
},
clientId,
});
web3AuthInstance.configureAdapter(torusWalletAdapter);
const torusPlugin = new TorusWalletConnectorPlugin({
torusWalletOpts: {},
walletInitOptions: {
whiteLabel: {
theme: { isDark: false, colors: {} },
logoDark: 'https://static.opensea.io/logos/torus-alternative.png',
logoLight:
'https://static.opensea.io/logos/torus-alternative.png',
},
useWalletConnect: true,
enableLogging: true,
},
});
await web3AuthInstance.addPlugin(torusPlugin);
subscribeAuthEvents(web3AuthInstance);
setWeb3Auth(web3AuthInstance);
await web3AuthInstance.initModal(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I stucked a little with integration.
What my final result:
when I login to app usign web3auth+torus I should see same wallet address as on opensea+torus.
For some reason I have different wallet address.
This code I'm using for login on my app
https://gist.github.com/gaiverrr/7571f0c3efe7ba2a2c4831f3758f3969
when I login using my gmail account, my wallet is: 0xC368d82561c42668AeF24B16aA37eAbE5451c433
when I go to opensea and login using torus and same gmail account I have wallet:
0x61521F73bF1C7b12db7aF98b3CA63f2c1185cCD1
From my perspective it should be same
Beta Was this translation helpful? Give feedback.
All reactions