authhero 9.22.0 → 9.22.1

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
@@ -9815,7 +9815,7 @@ var Vie = (e, t) => {
9815
9815
  }, Ad = (e, t, n, r) => {
9816
9816
  let i = Kie(t, n, r);
9817
9817
  e.header("Set-Cookie", i, { append: !0 });
9818
- }, jd = "mv14afuz", qie = /* @__PURE__ */ p({
9818
+ }, jd = "mv54mlnj", qie = /* @__PURE__ */ p({
9819
9819
  common: () => Md,
9820
9820
  consent: () => Nd,
9821
9821
  default: () => Jie,
@@ -64311,7 +64311,7 @@ async function xve(e, t, n, r) {
64311
64311
  async function C$(e, t, n, r, i, a, o) {
64312
64312
  let s = { value: a };
64313
64313
  try {
64314
- let a = o === s.value.user.user_id;
64314
+ let a = o === s.value.user.user_id && i.user_id === void 0;
64315
64315
  if (o && !r.upsert && !a) return g$(n.seq, {
64316
64316
  code: f$.USER_ALREADY_EXISTS,
64317
64317
  message: `A user matching ${i.email} already exists; enable upsert to update it`,