dexie-cloud-addon 4.3.4 → 4.3.5

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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.3.4, Fri Jan 23 2026
11
+ * Version 4.3.5, Fri Jan 23 2026
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -14889,6 +14889,25 @@
14889
14889
  public_key,
14890
14890
  };
14891
14891
  }
14892
+ else if ((hints === null || hints === void 0 ? void 0 : hints.grant_type) === 'otp' || (hints === null || hints === void 0 ? void 0 : hints.email)) {
14893
+ // User explicitly requested OTP flow - skip provider selection
14894
+ const email = (hints === null || hints === void 0 ? void 0 : hints.email) || (yield promptForEmail(userInteraction, 'Enter email address'));
14895
+ if (/@demo.local$/.test(email)) {
14896
+ tokenRequest = {
14897
+ demo_user: email,
14898
+ grant_type: 'demo',
14899
+ scopes: ['ACCESS_DB'],
14900
+ public_key
14901
+ };
14902
+ }
14903
+ else {
14904
+ tokenRequest = {
14905
+ email,
14906
+ grant_type: 'otp',
14907
+ scopes: ['ACCESS_DB'],
14908
+ };
14909
+ }
14910
+ }
14892
14911
  else {
14893
14912
  // Check for available auth providers (OAuth + OTP)
14894
14913
  const socialAuthEnabled = ((_c = db.cloud.options) === null || _c === void 0 ? void 0 : _c.socialAuth) !== false;
@@ -17974,7 +17993,7 @@
17974
17993
  const syncComplete = new rxjs.Subject();
17975
17994
  dexie.cloud = {
17976
17995
  // @ts-ignore
17977
- version: "4.3.4",
17996
+ version: "4.3.5",
17978
17997
  options: Object.assign({}, DEFAULT_OPTIONS),
17979
17998
  schema: null,
17980
17999
  get currentUserId() {
@@ -18353,7 +18372,7 @@
18353
18372
  }
18354
18373
  }
18355
18374
  // @ts-ignore
18356
- dexieCloud.version = "4.3.4";
18375
+ dexieCloud.version = "4.3.5";
18357
18376
  Dexie.Cloud = dexieCloud;
18358
18377
 
18359
18378
  // In case the SW lives for a while, let it reuse already opened connections: