Invalid Session Error

I could not find a good way to handle this error. Even the doc is not clear:

I want to force my users to reconnect their wallets and sign the login message again through MM when the session is invalid.

How do I do that?

You can try to use logout and then login

when? at which step? can you share a code snippet?

I don’t know all that info, I don’t know when you get that error or why either.

But a logout and login should fix any authentication error.

What is the code that causes that error that you have?

Usually you shouldn’t get that error.