Fix createAccount

This commit is contained in:
Jon Staab
2024-11-08 16:24:49 -08:00
parent 65719412a4
commit 75bb578192
+1 -1
View File
@@ -270,7 +270,7 @@ export class Nip46Broker extends Emitter {
throw new Error("Unable to create an account without a handler domain")
}
return this.enqueue("create_account", [username, this.#handler.domain, "", perms])
return this.#getResult(this.enqueue("create_account", [username, this.#handler.domain, "", perms]))
}
connect = async (token = "", perms = "", secret = "") => {