mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
The onSwitch callback now stores the target host in sessionStorage and calls clearAuth(), which triggers the existing logout flow (voice leave, WS disconnect, navigate to ConnectPage). On the ConnectPage side, a new selectServer() method auto-fills the host and loads saved credentials. The onAddServer callback similarly disconnects and lands on ConnectPage so the user can add a new server profile.