Hi, I’m trying Moralis v2 for auth with node.js
I’m following this examples
If I make a request as is, copy the result and pass the params to the verify function it gives me error 400
{
"statusCode": 400,
"name": "Error",
"message": "Invalid message: {\"success\":false,\"state\":103,\"length\":321,\"matched\":0,\"maxMatched\":104,\"maxTreeDepth\":15,\"nodeHits\":479,\"inputLength\":321,\"subBegin\":0,\"subEnd\":321,\"subLength\":321}"
}
Same error in my code, this is the param
{
message: 'localhost wants you to sign in with your Ethereum account:\n' +
'0xf1E424E818F2182ED5033a755A52f92c77c30753\n' +
'\n' +
'Please sign this message to confirm your identity.\n' +
'\n' +
'URI: https://localhost:5500\n' +
'Version: 1\n' +
'Chain ID: 1\n' +
'Nonce: jfIlyBt51iUV0xzEd\n' +
'Issued At: 2023-01-16T20:48:39.429Z\n' +
'Expiration Time: 2024-01-01T00:00:00.000Z',
signature: '0xac6695bb5e0188111a4c512813748fcb70b68f8366165ff28d90c8e8c8c3f279263745fa01032542e802423902fb0c1f221de8809fcc4d3f04debb101b9446a31c',
networkType: 'evm'
}
And this is the error
MoralisError [Moralis SDK Core Error]: [C0006] Request failed, Bad Request(400): message must be present, message must contain only ASCII characters, signature must be a valid hex string, signature must be present
What’s wrong?
Thanks