Issue with auth metamask authentication

Hello there!
Iā€™m using React.js with react-moralis for metamask authentication but thereā€™s an issue here
let me explane:
the app should authenticate with metamask, once you authenticate it will take your metamask address and send a request to the server side that i built and response me the user with metamask sent

no the issue is: there is authenticate with metamask and give it tot me the right user by metamask address but metamask extension still no logged in

so how to solve this issue?

1 Like

Hi @mohammadNow

This is an expected behavior. If you have an active session and cached authentication - it will let you sign in even without metamask.

It popups you metamask because somewhere you put enableWeb3()

1 Like

If you have no active user session - it will not let you log in without active metamask

1 Like

is there something semmler to enableWeb3()

What do you mean? Where?

ok, forget that.
iā€™ve another question plz, iā€™m using logout from useMoralis hook
so when i call logout ā€œisAuthentecatedā€ still true why?

Could you share your code?

image

image

logout is an async function

so what i have to do?

this is from moralis docs
image