Please provide the following details too when asking for help in this category:
- @web3auth/modal@6.1.1
- Web - Nextjs:
const user = await web3auth.getUserInfo();
not getting idToken for certain emails. But for most of the emails, it get the idToken parameter. This issue didn’t even occur a week ago. The email that is facing this issue received the idToken even 2-3 days ago. How do I fix this?
Web3Auth initialization and login code snippet below:
clientId: "BCNEb4vQCl8rrcqFpZDr3WcS5Hz2EMtRIMw8pEax3GzC1OAYqWSzqpq8-UaTGbZczgBQJ2z4WNWSMuwR5pBz4uY",
chainConfig: {
chainNamespace: "eip155",
blockExplorer: "https://goerli.etherscan.io",
chainId: "0x5",
},
web3AuthNetwork: "mainnet",
});
await web3auth.initModal({
modalConfig: {
openlogin: {
label: "openlogin",
loginMethods: {
facebook: {
name: "facebook",
showOnModal: false,
},
reddit: {
name: "reddit",
showOnModal: false,
},
discord: {
name: "discord",
showOnModal: false,
},
email_passwordless: {
name: "email_passwordless",
showOnModal: true,
},
wechat: {
name: "wechat",
showOnModal: false,
},
weibo: {
name: "weibo",
showOnModal: false,
},
twitter: {
name: "twitter",
showOnModal: false,
},
kakao: {
name: "kakao",
showOnModal: false,
},
line: {
name: "line",
showOnModal: false,
},
twitch: {
name: "twitch",
showOnModal: false,
},
apple: {
name: "apple",
showOnModal: false,
},
github: {
name: "github",
showOnModal: false,
},
linkedin: {
name: "linkedin",
showOnModal: false,
},
external_wallet: {
name: "external_wallet",
showOnModal: false,
},
sms_passwordless: {
name: "sms_passwordless",
showOnModal: false,
},
},
},
},
});
console.log(web3auth.connected, " auto 2 connected");
if (!web3auth.connected) await web3auth.connect();
const user = await web3auth.getUserInfo();
const isEmpty = Object.keys(user).length === 0;
console.log(user, " user", isEmpty);```