Hi, I am creating an app with react Moralis and I’ve come into a problem
The logging part of my app is basically on the homepage and if I refresh the page here my status of authentification is still true.
But when I go to another page (I use react-router-dom) and I refresh this page after refreshing it seems like Moralis no longer sees me as authenticated despite still being connected according to Metamask wallet.
const { logout, authenticate, isAuthenticated, user } = useMoralis();
<button onClick={() => authenticate({ signingMessage:"x", onError: (error) => setErrorMessage(error.message)})}>Connect Wallet</button>
Button I use to login using Moralis on Homepage
const {isAuthenticated, user, Moralis} = useMoralis();
on other page I will use the isAuthenticated to check if I am or not but after refreshing the variable == false all the time I need to go back on the homepage to get it back to true. How can I manage to avoid that?
Best regards,