Hi Moralis team,
We are trying to get all ERC20 tokens owned by the user right after the login:
async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.Web3.authenticate();
}
const balances = await Moralis.Web3.getAllERC20();
console.log(balances);
}
POST 400 Error
https://{our_server_url}/server/functions/getAllERC20
Body:
{"code":209,"error":"Invalid session token"}
Please let us know if one of the functions is creating the collision in these requests.
Thank you in advance!