Fix connect call

This commit is contained in:
Jon Staab
2024-12-30 09:19:56 -08:00
parent 7bd98270f8
commit 7a17dc772f
+1 -1
View File
@@ -121,7 +121,7 @@ export const loginWithNip46 = async ({
connectSecret?: string
}) => {
const broker = Nip46Broker.get({relays, clientSecret, signerPubkey})
const result = await broker.connect("", connectSecret, NIP46_PERMS)
const result = await broker.connect(signerPubkey, connectSecret, NIP46_PERMS)
// TODO: remove ack result
if (!["ack", connectSecret].includes(result)) return false