Reduce min pow, add verifySignature to nip98

This commit is contained in:
artur 2024-04-29 16:24:44 +02:00 committed by Mike Heier
parent ffa6d7120c
commit ae6bc3dc29

View File

@ -519,6 +519,10 @@ async function verifyAuthNostr(req, npub, path, minPow = 0) {
return false;
}
// finally after all cheap checks are done,
// verify the signature
if (!verifySignature(event)) return false;
return true;
} catch (e) {
console.log("auth error", e);