mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 08:21:20 +00:00
Merge pull request #170 from fishcakeday/fix-nip98-signing
fix nip98 authorization and actually sign the header
This commit is contained in:
commit
4042c13874
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user