@lvce-editor/auth-worker 3.11.1 → 3.13.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/authWorkerMain.js +13 -5
- package/package.json +1 -1
package/dist/authWorkerMain.js
CHANGED
|
@@ -1078,6 +1078,15 @@ const {
|
|
|
1078
1078
|
invoke: invoke$2,
|
|
1079
1079
|
set: set$1
|
|
1080
1080
|
} = create(MainProcess);
|
|
1081
|
+
const deleteSecret$1 = async (extensionId, key) => {
|
|
1082
|
+
await invoke$2('SecretStorage.delete', extensionId, key);
|
|
1083
|
+
};
|
|
1084
|
+
const getSecret$1 = async (extensionId, key) => {
|
|
1085
|
+
return invoke$2('SecretStorage.get', extensionId, key);
|
|
1086
|
+
};
|
|
1087
|
+
const storeSecret$1 = async (extensionId, key, value) => {
|
|
1088
|
+
await invoke$2('SecretStorage.store', extensionId, key, value);
|
|
1089
|
+
};
|
|
1081
1090
|
|
|
1082
1091
|
const {
|
|
1083
1092
|
invoke: invoke$1,
|
|
@@ -1162,14 +1171,13 @@ const setAuthPlatform = value => {
|
|
|
1162
1171
|
|
|
1163
1172
|
const authStorageId = 'lvce-editor.auth';
|
|
1164
1173
|
const deleteSecret = async key => {
|
|
1165
|
-
await
|
|
1174
|
+
await deleteSecret$1(authStorageId, key);
|
|
1166
1175
|
};
|
|
1167
1176
|
const getSecret = async key => {
|
|
1168
|
-
|
|
1169
|
-
return typeof value === 'string' ? value : '';
|
|
1177
|
+
return (await getSecret$1(authStorageId, key)) ?? '';
|
|
1170
1178
|
};
|
|
1171
1179
|
const storeSecret = async (key, value) => {
|
|
1172
|
-
await
|
|
1180
|
+
await storeSecret$1(authStorageId, key, value);
|
|
1173
1181
|
};
|
|
1174
1182
|
|
|
1175
1183
|
const databaseName = 'auth-worker';
|
|
@@ -1344,7 +1352,7 @@ const savePendingOidcAuthState = async value => {
|
|
|
1344
1352
|
let USER_AGENT;
|
|
1345
1353
|
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
|
|
1346
1354
|
const NAME = 'oauth4webapi';
|
|
1347
|
-
const VERSION = 'v3.8.
|
|
1355
|
+
const VERSION = 'v3.8.7';
|
|
1348
1356
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
1349
1357
|
}
|
|
1350
1358
|
function looseInstanceOf(input, expected) {
|