@stytch/vanilla-js 4.7.0 → 4.7.2

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.js CHANGED
@@ -3385,19 +3385,26 @@ var Rt = function () {
3385
3385
  }]), e;
3386
3386
  }(),
3387
3387
  Ft = function () {
3388
- function e(t) {
3389
- ve(this, e), this._networkClient = t;
3388
+ function e(t, n) {
3389
+ ve(this, e), this._networkClient = t, this.dfpProtectedAuth = n;
3390
3390
  }
3391
3391
  return Ae(e, [{
3392
3392
  key: "searchUser",
3393
3393
  value: function value(e) {
3394
- return this._networkClient.fetchSDK({
3395
- url: "/users/search",
3396
- method: "POST",
3397
- body: {
3398
- email: e
3399
- },
3400
- errorMessage: "Error searching for user ".concat(e)
3394
+ var t = this;
3395
+ return this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha().then(function (n) {
3396
+ var r = n.dfp_telemetry_id,
3397
+ o = n.captcha_token;
3398
+ return t._networkClient.fetchSDK({
3399
+ url: "/users/search",
3400
+ method: "POST",
3401
+ body: {
3402
+ email: e,
3403
+ dfp_telemetry_id: r,
3404
+ captcha_token: o
3405
+ },
3406
+ errorMessage: "Error searching for user ".concat(e)
3407
+ });
3401
3408
  });
3402
3409
  }
3403
3410
  }, {
@@ -3831,7 +3838,7 @@ var Kt = /*#__PURE__*/function () {
3831
3838
  },
3832
3839
  sdk: {
3833
3840
  identifier: "Stytch.js Javascript SDK",
3834
- version: "4.7.0"
3841
+ version: "4.7.2"
3835
3842
  }
3836
3843
  });
3837
3844
  }
@@ -4720,7 +4727,7 @@ var _n = /*#__PURE__*/_createClass(function _n(e, t) {
4720
4727
  c = new nt(e, o.endpoints.dfpBackendURL, a.getAsync(), s.executeRecaptcha),
4721
4728
  l = new Vt(o.endpoints.clientsideServicesIframeURL),
4722
4729
  u = new Jt(e, l),
4723
- d = new Ft(this._networkClient);
4730
+ d = new Ft(this._networkClient, c);
4724
4731
  var p, h;
4725
4732
  this.user = new at(this._networkClient, this._subscriptionService), this.session = new st(this._networkClient, this._subscriptionService), this.magicLinks = new lt(this._networkClient, this._subscriptionService, new Xt(this._dataLayer, "magic_links"), i, a.getAsync(), c), this.otps = new ut(this._networkClient, this._subscriptionService, s.executeRecaptcha, c), this.oauth = new Gt(this._networkClient, this._subscriptionService, new Xt(this._dataLayer, "oauth"), a.getAsync(), {
4726
4733
  publicToken: e,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/vanilla-js",
3
- "version": "4.7.0",
3
+ "version": "4.7.2",
4
4
  "description": "Stytch's official Javascript Client Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -37,7 +37,7 @@
37
37
  "hoistingLimits": "workspaces"
38
38
  },
39
39
  "dependencies": {
40
- "@stytch/core": "2.9.0",
40
+ "@stytch/core": "2.9.1",
41
41
  "@types/google-one-tap": "^1.2.0"
42
42
  },
43
43
  "devDependencies": {