Use nip04 for signup
This commit is contained in:
parent
08fef7aa51
commit
220f26253d
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue