Reduce min pow, add verifySignature to nip98
This commit is contained in:
parent
ffa6d7120c
commit
ae6bc3dc29
|
@ -519,6 +519,10 @@ async function verifyAuthNostr(req, npub, path, minPow = 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// finally after all cheap checks are done,
|
||||||
|
// verify the signature
|
||||||
|
if (!verifySignature(event)) return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("auth error", e);
|
console.log("auth error", e);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user