When asking for help in this category, please make sure to provide the following details:
- SDK Version(package.json):
“@web3auth/base”: “^8.12.4”,
“@web3auth/modal”: “^8.12.4”,
“@web3auth/solana-provider”: “^8.12.4”,
“@web3auth/wallet-services-plugin”: “^8.12.4”, - Platform: Web PnP
- Browser Console Screenshots:
WalletInitializationError: Wallet is not ready yet, Login modal is not initialized at Zt.fromCode (base.esm.js:70:12) at Zt.notReady (base.esm.js:81:38) at lf.connect (modal.esm.js:386:59) at Ye (App.tsx:519:22) at Object.Pe (react-dom.production.min.js:54:317) at Fe (react-dom.production.min.js:54:471) at react-dom.production.min.js:55:35 at Nn (react-dom.production.min.js:105:68) at jn (react-dom.production.min.js:106:380) at react-dom.production.min.js:117:104
const chainConfig = {
chainNamespace: CHAIN_NAMESPACES.SOLANA,
chainId: “0x1”, // Please use 0x1 for Mainnet
rpcTarget: “https://sly-virulent-sanctuary.solana-mainnet.quiknode.pro/1ae4556ec8c1fcee2b1b314a70ce41994a3f3aec”,
displayName: “Solana Mainnet”,
blockExplorer: “https://explorer.solana.com”,
ticker: “SOL”,
tickerName: “Solana”,
};
const connection = new Connection(chainConfig.rpcTarget, ‘confirmed’);
const privateKeyProvider = new SolanaPrivateKeyProvider({ config: { chainConfig } });
const web3auth = new Web3Auth(web3AuthOptions as Web3AuthOptions);
const openloginAdapter = new OpenloginAdapter({
loginSettings: {
mfaLevel: "none",
curve: "ed25519", // allowed values "secp256k1" (default, EVM) or "ed25519" (Solana)
},
adapterSettings: {
uxMode: "redirect", // "redirect" | "popup"
whiteLabel: {
logoLight: "https://thelive.bet/favicon.ico",
logoDark: "https://thelive.bet/favicon.ico",
defaultLanguage: "en", // en, de, ja, ko, zh, es, fr, pt, nl, tr
mode: "light", // whether to enable dark, light or auto mode. defaultValue: auto [ system theme]
},
},
});
web3auth.configureAdapter(openloginAdapter);
setWeb3auth(web3auth);
await web3auth.initModal({
modalConfig: {
[WALLET_ADAPTERS.OPENLOGIN]: {
label: "openlogin",
loginMethods: {
google: {
name: "google",
showOnModal: true,
mainOption: true
},
twitter: {
name: "twitter",
showOnModal: true,
mainOption: true
},
farcaster: {
name: "farcaster",
showOnModal: false
},
apple: {
name: "apple",
showOnModal: false
},
discord: {
name: "discord",
showOnModal: false
},
wechat: {
name: "wechat",
showOnModal: false
},
twitch: {
name: "twitch",
showOnModal: false
},
facebook: {
name: "facebook",
showOnModal: false
},
reddit: {
name: "reddit",
showOnModal: false
},
weibo: {
name: "weibo",
showOnModal: false
},
line: {
name: "line",
showOnModal: false
},
linkedin: {
name: "linkedin",
showOnModal: false
},
kakao: {
name: "kakao",
showOnModal: false
},
github: {
name: "github",
showOnModal: false
},
// Disable email_passwordless and sms_passwordless
email_passwordless: {
name: "email_passwordless",
showOnModal: false
},
sms_passwordless: {
name: "sms_passwordless",
showOnModal: false
}
}
}
}
});
So only 1 of our users is seeing that error. This user has successfully login before, but can’t login anymore now (clearing the cache and trying in incognito mode both did’t work). Other users are fine.
Please absolutely help fix. This impact our core business. There might be similar users like him.