chore: update/make more clear connect flow

This commit is contained in:
Senko-san
2026-06-13 12:35:20 +03:00
parent 98e9344261
commit facc215450
5 changed files with 364 additions and 225 deletions
+5
View File
@@ -98,6 +98,11 @@ export function upsertInstance(url: string, name?: string): Instance {
return inst;
}
/** Clear a backend's stored session without forgetting the instance itself. */
export function clearInstanceAuth(id: string): void {
localStorage.removeItem(scopedKey('auth', id));
}
/** Remove a backend and wipe every scoped key it owns. */
export function removeInstance(id: string): void {
writeRegistry(readRegistry().filter((i) => i.id !== id));