tradly 1.2.12 → 1.2.14
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/Helper/AuthHelper.js +16 -16
- package/Roots/User.js +4 -0
- package/package.json +1 -1
package/Helper/AuthHelper.js
CHANGED
|
@@ -28,22 +28,22 @@ let authPackageLoading = false;
|
|
|
28
28
|
*/
|
|
29
29
|
function getAuthPackage() {
|
|
30
30
|
if (authPackage === false) return null; // Not available
|
|
31
|
-
if (authPackage === null) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
31
|
+
// if (authPackage === null) {
|
|
32
|
+
// // Still loading, try to trigger load if not already loading
|
|
33
|
+
// if (!authPackageLoading) {
|
|
34
|
+
// (async () => {
|
|
35
|
+
// authPackageLoading = true;
|
|
36
|
+
// try {
|
|
37
|
+
// authPackage = await import("@tradly/auth");
|
|
38
|
+
// } catch (e) {
|
|
39
|
+
// authPackage = false;
|
|
40
|
+
// } finally {
|
|
41
|
+
// authPackageLoading = false;
|
|
42
|
+
// }
|
|
43
|
+
// })();
|
|
44
|
+
// }
|
|
45
|
+
// return null; // Still loading
|
|
46
|
+
// }
|
|
47
47
|
return authPackage;
|
|
48
48
|
}
|
|
49
49
|
|
package/Roots/User.js
CHANGED
|
@@ -94,6 +94,7 @@ class User {
|
|
|
94
94
|
path: REGISTER,
|
|
95
95
|
method: Method.POST,
|
|
96
96
|
param: param.data,
|
|
97
|
+
pkKey: param.pkKey,
|
|
97
98
|
});
|
|
98
99
|
if (error) {
|
|
99
100
|
return error;
|
|
@@ -110,6 +111,7 @@ class User {
|
|
|
110
111
|
path: FORGOTPASSWORD,
|
|
111
112
|
method: Method.POST,
|
|
112
113
|
param: param.data,
|
|
114
|
+
pkKey: param.pkKey,
|
|
113
115
|
});
|
|
114
116
|
if (error) {
|
|
115
117
|
return error;
|
|
@@ -126,6 +128,7 @@ class User {
|
|
|
126
128
|
path: SETPASSWORD,
|
|
127
129
|
method: Method.POST,
|
|
128
130
|
param: param.data,
|
|
131
|
+
pkKey: param.pkKey,
|
|
129
132
|
});
|
|
130
133
|
if (error) {
|
|
131
134
|
return error;
|
|
@@ -164,6 +167,7 @@ class User {
|
|
|
164
167
|
path: LOGOUT,
|
|
165
168
|
method: Method.POST,
|
|
166
169
|
param: param.data,
|
|
170
|
+
pkKey: param.pkKey,
|
|
167
171
|
});
|
|
168
172
|
if (error) {
|
|
169
173
|
return error;
|