Yes, you need to pass that data.
You can get it from the below code. So dont hardcode it.
const { account, chainId } = Moralis;
Yes, you need to pass that data.
You can get it from the below code. So dont hardcode it.
const { account, chainId } = Moralis;
Okay let me get back to you after seeing what happens after the changes. Thankyou
Can you show how your current auth code looks like
It looks like this (angular, IONIC)
It looks like a typescript error. You can ignore it in this case by adding a ts-ignore comment.
Are there any error logs in server console?
I removed then part as you suggested, now its not giving error but its neither authenticating the user, it is stuck on the function and after waiting 2,3 mins it says this:
@johnversus my application is live and i need this issue fixed, guide me how Iβll be able to do the authentication and the server file uploading as it was being done on the moralis server
I did not understand which error you have issues with.
As per the server logs there is no error related to authentication. You can check your mongo database to know if the user session was updated in the db or not.
The error message in your browser looks like a customer error message from your code. Please try adding more logs to know what is causing this error on client side.
this is the request against going against users while authenticating
by running this code:
let user = await Moralis.authenticate({
qrModalOptions: {
themeMode: 'dark',
explorerRecommendedWalletIds: [
'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96',
],
},
provider: 'walletconnect',
projectId: 'projectidofwalletconnet',
signingMessage: message,
});
console.log('user:', user);
and this is returning repose of error code 1, but the error in the response is not specified.
Status code is 500 (Internal server error)
I dont know yet what is causing the errors.
have you tried running the server in localhost and using it in your frontend?
You can check if you are seeing same errors on localhost
I didnβt use the mongodb dump rather i exported all the collections from moralis server without indexing, can that be an issue?
I dont know what is throwing that error.