fix: when decrypting file, have better error messages #17
@ -8,6 +8,7 @@
|
|||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
|
"lint:fix": "eslint . --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -370,7 +370,7 @@ createNostrHttpAuthToken = async (
|
|||||||
): Promise<string> => {
|
): Promise<string> => {
|
||||||
const createdAt = Math.round(Date.now() / 1000)
|
const createdAt = Math.round(Date.now() / 1000)
|
||||||
|
|
||||||
let authEvent = new NDKEvent(undefined)
|
const authEvent = new NDKEvent(undefined)
|
||||||
authEvent.kind = 27235
|
authEvent.kind = 27235
|
||||||
authEvent.tags = nostrTags
|
authEvent.tags = nostrTags
|
||||||
authEvent.content = `sigit-${createdAt}`
|
authEvent.content = `sigit-${createdAt}`
|
||||||
|
Loading…
Reference in New Issue
Block a user