Metamask Logout

Hello, could you tell me how to disconnect the metamask session when using “signInWithMoralis”

Hi @gareth7923

You can disconnect from the user session with metamask by clearing the session storage. This logs out the user from your app so the user can no longer access metamask through the app.

In case, If you are referring to a complete disconnect from the metamask extension, then it is not possible through code. It requires the user to manually disconnect through the extension UI.