Time out signing, rework signer log
This commit is contained in:
@@ -30,13 +30,13 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"nostr-signer-capacitor-plugin": "~0.0.4",
|
||||
"@pomade/core": "^0.0.4"
|
||||
"@pomade/core": "^0.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@capacitor/core": "^7.2.0",
|
||||
"nostr-signer-capacitor-plugin": "~0.0.4",
|
||||
"rimraf": "~6.0.0",
|
||||
"typescript": "~5.8.0",
|
||||
"@pomade/core": "^0.0.4"
|
||||
"@pomade/core": "^0.0.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,5 +91,6 @@ export const signWithOptions = (
|
||||
) =>
|
||||
new Promise<SignedEvent>((resolve, reject) => {
|
||||
Promise.resolve(promise).then(resolve).catch(reject)
|
||||
setTimeout(() => reject("Signing timed out"), 30_000)
|
||||
options.signal?.addEventListener("abort", () => reject("Signing was aborted"))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user