Uncaught (in promise) Error: Invalid session token
at Function.
This error is giving me since yesterday. and I have not touched the login code I have deleted cache reinstalled the packages changed wallet and it is not solved and the login worked perfectly
login code:
const Login = async () => {
if (!state.authenticated) {
// await Moralis.enableWeb3();
// if (chainId != '80001') {
// await switchNetworkMumbai()
// }
await authenticate({signingMessage: "Welcome to Koolinart"})
.then(async function (user) {
const userMarketType = user!.get("loginType")
dispatch({
type: 'USER_AUTHENTICATED',
payload: true
})
dispatch({
type: 'GET_LOGIN_TYPE',
payload: userMarketType
})
dispatch({
type: 'USER_RENDER',
payload: user
})
return
})
.catch(function (error) {
console.log(error);
});
}
}