currently we dont have “sessionTime” in our code.
our dev asks:
if i dont pass sessionTime
what should be the time?
and where should i pass it if i use this code:
new Web3Auth({
clientId, // Get your Client ID from Web3Js Dashboard
web3AuthNetwork: APP.state.get(‘web3_auth_network’),
storageKey: “local”,
uiConfig: {
appLogo:
theme: { isDark: true, colors: { primary: “#123653”, background: “#123653”, torusBrand1: “#000000” }, },
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 TorusWalletConnectorPlugin({
torusWalletOpts: {
},
walletInitOptions: {
buildEnv: “polygon”,
showTorusButton: true,
whiteLabel: {
theme: { isDark: true, colors: { primary: “#123653”, background: “#123653”, torusBrand: “#000000” }, },
name: ‘Playnance’,
logoDark: logoLight,
logoLight: logoLight,
featuredBillboardHide: true,
disclaimerHide: true,
useWalletConnect: true,
enableLogging: false
},
},
})