Add single sign out middleware