How can I logout metamask using moralis 2.0?

Before I have used Moralis v1 logout function it works well but in Moralis 2.0 How can i logout metamask??

You can check this example where we use signOut from next-auth to remove the session

1 Like

I tried but it give me an error ( SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data )

what is your expectation with logging out metamask? it is a difference in disconnecting metamask and logging out current user session from the application

no there is no difference. I want to disconnect metamask when I will click on logout button. In Moralis v1 it was easy to do but now I don’t find anything

there wasn’t a way to disconnect metamask in moralis sdk v1 from what I know, it was disconnecting only current logged in user based on the session

How can i do this in Moralis 2.0 ?

Where is this coming from?