Appwrite Auth now supports account switching. One browser or app install can stay signed in to several accounts at once and switch the active one, without signing out and back in.
Call account.createDevice() when your app starts. Every session you create after that, with any sign-in method, joins the device and becomes the active account. account.getDevice() lists the signed-in accounts for your account picker, and account.updateDeviceSession() switches between them. The active account's session stays in the usual session cookie, so the rest of your app works unchanged.
Account switching is on by default. You can turn it off under Auth > Policies > Sessions in the Appwrite Console. It ships in the next self-hosted Appwrite release.
