Account switching is a tricky feature to implement properly because it involves a carefully orchestrated procedure that involves rotating cached auth data, invalidating the api query cache and then storing new auth data and applying the per-account settings.
There are a ton of things to watch out for, like expired auth tokens, and the refresh logic, deleted accounts, and 2FA.
Not to mention Push Notifications, its possible you'll get notifications from other accounts and we have to handle that