Merge pull request #170 from fishcakeday/fix-nip98-signing

fix nip98 authorization and actually sign the header
This commit is contained in:
hodlbod 2023-10-07 04:37:48 -07:00 committed by GitHub
commit 4042c13874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ export const uploadToNostrBuild = async body => {
})
const event = await ($signer.canSign()
? $signer.prepAsUser(template)
: $signer.prepWithKey(template, generatePrivateKey()))
? $signer.signAsUser(template)
: $signer.signWithKey(template, generatePrivateKey()))
return Fetch.fetchJson(url, {
body,