dexie-cloud-addon 4.3.3 → 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.
- package/dist/modern/DexieCloudAPI.d.ts +12 -1
- package/dist/modern/dexie-cloud-addon.js +32 -3
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/dexie-cloud-client.d.ts +1 -1
- package/dist/modern/service-worker.js +32 -3
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.js +33 -4
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +33 -4
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.3.
|
|
11
|
+
* Version 4.3.5, Fri Jan 23 2026
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -2897,6 +2897,25 @@
|
|
|
2897
2897
|
public_key,
|
|
2898
2898
|
};
|
|
2899
2899
|
}
|
|
2900
|
+
else if ((hints === null || hints === void 0 ? void 0 : hints.grant_type) === 'otp' || (hints === null || hints === void 0 ? void 0 : hints.email)) {
|
|
2901
|
+
// User explicitly requested OTP flow - skip provider selection
|
|
2902
|
+
const email = (hints === null || hints === void 0 ? void 0 : hints.email) || (yield promptForEmail(userInteraction, 'Enter email address'));
|
|
2903
|
+
if (/@demo.local$/.test(email)) {
|
|
2904
|
+
tokenRequest = {
|
|
2905
|
+
demo_user: email,
|
|
2906
|
+
grant_type: 'demo',
|
|
2907
|
+
scopes: ['ACCESS_DB'],
|
|
2908
|
+
public_key
|
|
2909
|
+
};
|
|
2910
|
+
}
|
|
2911
|
+
else {
|
|
2912
|
+
tokenRequest = {
|
|
2913
|
+
email,
|
|
2914
|
+
grant_type: 'otp',
|
|
2915
|
+
scopes: ['ACCESS_DB'],
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2900
2919
|
else {
|
|
2901
2920
|
// Check for available auth providers (OAuth + OTP)
|
|
2902
2921
|
const socialAuthEnabled = ((_c = db.cloud.options) === null || _c === void 0 ? void 0 : _c.socialAuth) !== false;
|
|
@@ -13808,7 +13827,7 @@
|
|
|
13808
13827
|
*
|
|
13809
13828
|
* ==========================================================================
|
|
13810
13829
|
*
|
|
13811
|
-
* Version 4.2.2,
|
|
13830
|
+
* Version 4.2.2, Fri Jan 23 2026
|
|
13812
13831
|
*
|
|
13813
13832
|
* https://dexie.org
|
|
13814
13833
|
*
|
|
@@ -18145,7 +18164,7 @@
|
|
|
18145
18164
|
const syncComplete = new rxjs.Subject();
|
|
18146
18165
|
dexie.cloud = {
|
|
18147
18166
|
// @ts-ignore
|
|
18148
|
-
version: "4.3.
|
|
18167
|
+
version: "4.3.5",
|
|
18149
18168
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
18150
18169
|
schema: null,
|
|
18151
18170
|
get currentUserId() {
|
|
@@ -18213,6 +18232,16 @@
|
|
|
18213
18232
|
: yield logout(DexieCloudDB(dexie));
|
|
18214
18233
|
});
|
|
18215
18234
|
},
|
|
18235
|
+
getAuthProviders() {
|
|
18236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18237
|
+
const options = dexie.cloud.options;
|
|
18238
|
+
if (!(options === null || options === void 0 ? void 0 : options.databaseUrl)) {
|
|
18239
|
+
throw new Error('Dexie Cloud not configured. Call db.cloud.configure() first.');
|
|
18240
|
+
}
|
|
18241
|
+
const socialAuthEnabled = options.socialAuth !== false;
|
|
18242
|
+
return fetchAuthProviders(options.databaseUrl, socialAuthEnabled);
|
|
18243
|
+
});
|
|
18244
|
+
},
|
|
18216
18245
|
sync() {
|
|
18217
18246
|
return __awaiter(this, arguments, void 0, function* ({ wait, purpose } = { wait: true, purpose: 'push' }) {
|
|
18218
18247
|
var _a;
|
|
@@ -18514,7 +18543,7 @@
|
|
|
18514
18543
|
}
|
|
18515
18544
|
}
|
|
18516
18545
|
// @ts-ignore
|
|
18517
|
-
dexieCloud.version = "4.3.
|
|
18546
|
+
dexieCloud.version = "4.3.5";
|
|
18518
18547
|
Dexie.Cloud = dexieCloud;
|
|
18519
18548
|
|
|
18520
18549
|
exports.default = dexieCloud;
|