Rework onboarding flow, add recovery

This commit is contained in:
Jon Staab
2026-01-16 10:06:25 -08:00
parent f3647e9bc1
commit 6aa297c1a4
11 changed files with 92 additions and 93 deletions
+3 -13
View File
@@ -16,8 +16,9 @@
const loadSessions = async () => {
if (!isPomadeSession($session)) return
const client = new Client($session.clientOptions)
try {
const client = new Client($session.clientOptions)
const result = await client.listSessions()
const pubkey = await client.getPubkey()
@@ -42,20 +43,9 @@
}
sessions = Array.from(sessionMap.values())
} else {
pushToast({
theme: "error",
message: "Failed to load sessions",
})
}
} finally {
client.stop()
} catch (e) {
console.error(e)
pushToast({
theme: "error",
message: "Failed to load sessions",
})
}
}