Update pomade version

This commit is contained in:
Jon Staab
2026-02-20 14:21:38 -08:00
parent b39775daef
commit 527ef59adc
11 changed files with 50 additions and 78 deletions
+2 -6
View File
@@ -39,8 +39,6 @@
loading = true
let client: Client | undefined = undefined
try {
const secret = getKey<string>("signup.secret")!
const {clientOptions, ...registerRes} = await Client.register(2, 3, secret)
@@ -52,12 +50,11 @@
})
}
client = new Client(clientOptions)
const client = new Client(clientOptions)
const setupRes = await client.setupRecovery(email, password)
if (!setupRes.ok) {
const message = setupRes.messages[0]?.payload.message || "Please try again."
const message = setupRes.messages[0]?.res?.message || "Please try again."
return pushToast({
theme: "error",
@@ -86,7 +83,6 @@
message: "Failed to register! Please try again.",
})
} finally {
client?.stop()
loading = false
}
}