How should we deal with logout if we login via sso?

I was struggling this as well today and I found the fix, here’s the link for your reference.
I suppose you can access everything except logout, since logout somehow requires below POST request body

{"mode": "session"}