Sure.
“@web3auth/base”: “^7.0.4”,
“@web3auth/modal”: “^7.0.4”,
“@web3auth/torus-wallet-connector-plugin”: “^7.0.4”,
“@web3auth/wallet-connect-v2-adapter”: “^7.0.4”,
new Web3Auth({
clientId, // Get your Client ID from Web3Js Dashboard
web3AuthNetwork: "testnet",
storageKey: "local",
uiConfig: {
appLogo: logoPetit,
theme: "dark",
loginMethodsOrder: ['google', 'facebook', 'apple', 'linkedin']
},
chainConfig: {
chainNamespace: "eip155",
chainId: chainId, // hex of 137, polygon mainnet
rpcTarget: APP.state.get('eth_ws_web3auth'),
// Avoid using public rpcTarget in production.
// Use services like Infura, Quicknode etc
//displayName: displayName,
//blockExplorer: blockExplorer,
//ticker: ticker,
//tickerName: tickerName,
},
})
new OpenloginAdapter({
loginSettings: {
mfaLevel: “none”, // Pass on the mfa level of your choice: default, optional, mandatory, none
},
adapterSettings: {
uxMode: browserName.toLowerCase().includes(‘safari’) ? ‘redirect’ : ‘popup’,
redirectUrl: window.location.origin + ‘/trade’,
whiteLabel: {
name: “Playnance”,
//logoLight: logo,
//logoDark: logo,
defaultLanguage: “en”,
dark: false, // whether to enable dark mode. defaultValue: false
},
}
})
new TorusWalletConnectorPlugin({
torusWalletOpts: {
},
walletInitOptions: {
buildEnv: "polygon",
showTorusButton: true,
whiteLabel: {
theme: { isDark: true, colors: { primary: "#123653", background: "#123653", torusBrand1: "#000000" }, },
logoDark: logoLight,
logoLight: logoLight,
featuredBillboardHide: true,
disclaimerHide: true,
useWalletConnect: false,
enableLogging: false
},
},
})