Use nip04 for signup

This commit is contained in:
Jon Staab
2024-12-03 12:31:31 -08:00
parent 08fef7aa51
commit 220f26253d
+6 -1
View File
@@ -34,7 +34,12 @@
}
const clientSecret = makeSecret()
const broker = Nip46Broker.get({relays, clientSecret, signerPubkey})
const broker = Nip46Broker.get({
relays,
clientSecret,
signerPubkey,
algorithm: "nip04",
})
const userPubkey = await broker.createAccount(username, signerDomain, NIP46_PERMS)