authhero 4.61.0 → 4.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/authhero.mjs CHANGED
@@ -10319,7 +10319,7 @@ function sA(e, t) {
10319
10319
  e.var.client_id,
10320
10320
  e.var.tenant_id
10321
10321
  );
10322
- r.email && await cA(e, a, t, r.email);
10322
+ r.email && await cA(e, a, t, r.email, r.connection);
10323
10323
  }
10324
10324
  const i = {
10325
10325
  method: e.req.method,
@@ -10531,14 +10531,20 @@ async function fu(e, t, n, r, i = "email") {
10531
10531
  }
10532
10532
  return { allowed: !0 };
10533
10533
  }
10534
- async function cA(e, t, n, r) {
10535
- const i = await fu(e, t, n, r);
10536
- if (!i.allowed)
10534
+ async function cA(e, t, n, r, i) {
10535
+ const o = await fu(
10536
+ e,
10537
+ t,
10538
+ n,
10539
+ r,
10540
+ i
10541
+ );
10542
+ if (!o.allowed)
10537
10543
  throw _e(e, t.tenant.id, {
10538
10544
  type: he.FAILED_SIGNUP,
10539
- description: i.reason || "Signup not allowed"
10545
+ description: o.reason || "Signup not allowed"
10540
10546
  }), new Y(400, {
10541
- message: i.reason || "Signups are disabled for this client"
10547
+ message: o.reason || "Signups are disabled for this client"
10542
10548
  });
10543
10549
  await XE(e)(t.tenant.id, r);
10544
10550
  }
@@ -34630,7 +34636,7 @@ const qe = /* @__PURE__ */ Pv(AO), CO = (e) => e === "small" ? "text-base" : e =
34630
34636
  }, jO = (e, t) => {
34631
34637
  const n = e.replace("#", ""), r = parseInt(n, 16), i = r >> 16 & 255, o = r >> 8 & 255, a = r & 255, c = Math.min(255, Math.round(i + (255 - i) * t)), l = Math.min(255, Math.round(o + (255 - o) * t)), u = Math.min(255, Math.round(a + (255 - a) * t));
34632
34638
  return `#${(c << 16 | l << 8 | u).toString(16).padStart(6, "0")}`;
34633
- }, Po = "mmt5mnty", IO = (e, t) => {
34639
+ }, Po = "mmtdtz05", IO = (e, t) => {
34634
34640
  const n = e?.colors?.primary_button || t?.colors?.primary || "#000000", r = e?.colors?.base_hover_color || jO(n, 0.2), i = e?.colors?.primary_button_label || "#ffffff";
34635
34641
  return `
34636
34642
  body {