import { timingSafeEqual } from "node:crypto";
function secretEqual(supplied, expected) {
  if (typeof supplied !== "string" || supplied.length === 0) return false;
  if (typeof expected !== "string" || expected.length === 0) return false;
  const a = Buffer.from(supplied, "utf8");
  const b = Buffer.from(expected, "utf8");
  if (a.length !== b.length) return false;
  return timingSafeEqual(a, b);
}
export {
  secretEqual
};
//# sourceMappingURL=secretCompare.js.map
