try {
const web3auth = new Web3Auth({
clientId,
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: process.env.NEXT_PUBLIC_MAIN_NET_CHAINID,
rpcTarget: process.env.NEXT_PUBLIC_RPC_TARGET, // This is the public RPC we have added, please pass on your own endpoint while creating an app
},
mfaLevel: 'none',
// uiConfig refers to the whitelabeling options, which is available only on Growth Plan and above
// Please remove this parameter if you're on the Base Plan
// uiConfig: {
// name: 'Appname',
// logoLight: process.env.NEXT_PUBLIC_URL + '/logo.png',
// logoDark: process.env.NEXT_PUBLIC_URL + '/logo.png',
// defaultLanguage: 'en',
// dark: true, // whether to enable dark mode. defaultValue: false
// loginMethodsOrder: ['apple', 'google', 'twitter'],
// loginGridCol: 1,
// primaryButton: 'socialLogin', // "externalLogin" | "socialLogin" | "emailLogin"
// },
web3AuthNetwork: process.env.NEXT_PUBLIC_NET,
});
await web3auth.initModal();
return web3auth;
// await web3auth.initModal();
// if (web3auth.connected) {
// console.log('web3auth Init connected');
// // setLoggedIn(true);
// }
} catch (error) {
console.error(error);
return null;
}
Before, we had declared that custom setting, but we didn’t use it. The code only used the default one, and it worked fine. Now, we’ve deleted that Facebook app, but for some reason, it’s affecting the login, and we can’t log in with Facebook anymore. Please help check it
this is error messge from FB: The domain of this URL is not included in the application’s domains. To load this URL, please add all domains and subdomains of the application to the App Domains field in your application’s settings.
I tried and still got error flogin via fb. But i try with new client id is OK. Pls check problem with my clientid: BNkriezikGSdwHnsGlIDfGBybrUDeWPs68eQ8RSqsn8u9QCrbyBFmIBQnRpKGr7cqtn9yir8oGC3kuBxHNRGOfk