I have created a project on sapphire devnet and use mpc core kit sdk. I am able to signin on local host on web appliaction but getting this error while I am trying to log in on my application hosted url
I hope you are great today.
Could you share with us the version of the packages you are using and some code snippets?
This will assist us in better understanding and resolving the issue.
Thank you!
packages:
web3: "1.8.1",
@web3auth/mpc-core-kit: "2.3.0",
@web3modal/ethereum: "^2.7.1",
@web3modal/ethers5": "^3.3.2",
@web3modal/react: "^2.7.1",
code snippet:
const coreKitInstance = new Web3AuthMPCCoreKit({
web3AuthClientId: WEB3AUTH_CLIENT_ID,
web3AuthNetwork: WEB3AUTH_NETWORK?.DEVNET,
uxMode: "popup",
chainConfig,
});
const firebaseConfig = {
apiKey: "xxxx",
authDomain: "xxxx",
projectId: "xxxx",
storageBucket: "xxxx",
messagingSenderId: "xx",
appId: "xx",
measurementId: "x",
};
function Web3Auth() {
const dispatch = useAppDispatch();
const [coreKitStatus, setCoreKitStatus] = useState<COREKIT_STATUS>(
COREKIT_STATUS.NOT_INITIALIZED
);
const [backupFactorKey, setBackupFactorKey] = useState<string>("");
const [mnemonicFactor, setMnemonicFactor] = useState<string>("");
const app = initializeApp(firebaseConfig);
useEffect(() => {
const init = async () => {
await coreKitInstance.init();
setCoreKitStatus(coreKitInstance.status);
};
init();
}, []);
Would you main trying to use the initial parameters be similar to our example web3auth-core-kit-examples/mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/src/App.tsx at a3fa4265c6f459cd6fb4c9c9722121597858a0f0 · Web3Auth/web3auth-core-kit-examples · GitHub ?
Also please update to our last version 2.3.3.
Contact me if the problem persists or if you have any other issues.
Thank you!
i am using a devnet project, is mainnet necessary for hosted application to work?
No, you can do it in devnet.
Thank you updated the core kit version; it worked for me. Also, could you please clarify what “Free 1,000 Monthly Active Wallets (MAWs)” means? Does it imply that only 1000 new users can log in, or does each login by a single user incrementally count towards the total of 1000?
In the Base plan, you have 1,000 MAWs for free, which means that from 0 to 1,000 you will not be charged, from 1,001 we will charge $0.050 for each additional MAW.
MAW: represents a user who logs in or has an active session at least once in a given calendar month, regardless of the number of times a user logs in during that month.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.