@zenstackhq/orm 3.5.0-beta.5 → 3.5.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/index.cjs CHANGED
@@ -9191,7 +9191,7 @@ var ClientImpl = class _ClientImpl {
9191
9191
  return newClient;
9192
9192
  }
9193
9193
  $setAuth(auth) {
9194
- if (auth !== void 0 && typeof auth !== "object") {
9194
+ if (auth !== void 0 && (typeof auth !== "object" || auth === null || Array.isArray(auth))) {
9195
9195
  throw new Error("Invalid auth object");
9196
9196
  }
9197
9197
  const newClient = new _ClientImpl(this.schema, this.$options, this);