Change deepequal to hashcompare

This commit is contained in:
zkldi
2021-11-05 21:49:47 +00:00
parent 19e344bd29
commit 33a91b007f
4 changed files with 16 additions and 125 deletions
@@ -157,6 +157,18 @@ router.patch(
return "Invalid URL.";
}
return true;
}),
redirectUri: optNull((self) => {
if (typeof self !== "string") {
return "Expected a string.";
}
const res = IsValidURL(self);
if (!res) {
return "Invalid URL.";
}
return true;
}),
}),