@bytexbyte/berifyme-react-sdk 1.0.12 → 1.0.13
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.
|
@@ -134,22 +134,22 @@ var AuthID = function (_a) {
|
|
|
134
134
|
});
|
|
135
135
|
goRedirect();
|
|
136
136
|
}
|
|
137
|
-
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}));
|
|
137
|
+
// WebSDK不需要這段, 不會被WebView使用 (window as any).ReactNativeWebView.postMessage(JSON.stringify({
|
|
138
|
+
// event: 'onSuccess', user: {
|
|
139
|
+
// id: result.userId,
|
|
140
|
+
// isActive: null,
|
|
141
|
+
// email: null,
|
|
142
|
+
// phoneNumber: phone,
|
|
143
|
+
// authIDAccountNumber: null,
|
|
144
|
+
// incodeId: null,
|
|
145
|
+
// clearId: null,
|
|
146
|
+
// idmeId: null,
|
|
147
|
+
// fullName,
|
|
148
|
+
// age: null,
|
|
149
|
+
// birthDate: birthDateFromAuthId?.replaceAll('-', '/'),
|
|
150
|
+
// transactionId,
|
|
151
|
+
// }
|
|
152
|
+
// }));
|
|
153
153
|
return [2 /*return*/];
|
|
154
154
|
case 3:
|
|
155
155
|
setError(result.error);
|
|
@@ -210,12 +210,12 @@ var AuthID = function (_a) {
|
|
|
210
210
|
setUrl('');
|
|
211
211
|
setTimeout(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
212
|
var document, documentType;
|
|
213
|
-
var _a, _b, _c, _d, _e, _f
|
|
214
|
-
return __generator(this, function (
|
|
215
|
-
switch (
|
|
213
|
+
var _a, _b, _c, _d, _e, _f;
|
|
214
|
+
return __generator(this, function (_g) {
|
|
215
|
+
switch (_g.label) {
|
|
216
216
|
case 0: return [4 /*yield*/, berifymeApi.authID.getDocumentDetails({ token: localStorage.getItem('authID_token') || '', operationId: operationId, userId: userId, sessionToken: token })];
|
|
217
217
|
case 1:
|
|
218
|
-
document =
|
|
218
|
+
document = _g.sent();
|
|
219
219
|
createDeveloperLog({
|
|
220
220
|
userId: userId,
|
|
221
221
|
source: 'FRONTEND',
|
|
@@ -246,7 +246,7 @@ var AuthID = function (_a) {
|
|
|
246
246
|
documentType: (documentType === null || documentType === void 0 ? void 0 : documentType.includes('Passport')) ? 'Passport' : 'ID'
|
|
247
247
|
})];
|
|
248
248
|
case 2:
|
|
249
|
-
|
|
249
|
+
_g.sent();
|
|
250
250
|
createDeveloperLog({
|
|
251
251
|
userId: userId,
|
|
252
252
|
source: 'FRONTEND',
|
|
@@ -262,23 +262,7 @@ var AuthID = function (_a) {
|
|
|
262
262
|
updateAuthenticationLog({ isPass: true, transactionId: operationId, token: token });
|
|
263
263
|
goToAllSet();
|
|
264
264
|
}
|
|
265
|
-
|
|
266
|
-
event: 'onSuccess', user: {
|
|
267
|
-
id: userId,
|
|
268
|
-
fullName: (_g = document.details.find(function (item) { return item.Key === 'NameOfHolder'; })) === null || _g === void 0 ? void 0 : _g.Value,
|
|
269
|
-
phoneNumber: document.phone,
|
|
270
|
-
isActive: null,
|
|
271
|
-
email: null,
|
|
272
|
-
authIDAccountNumber: null,
|
|
273
|
-
incodeId: null,
|
|
274
|
-
clearId: null,
|
|
275
|
-
idmeId: null,
|
|
276
|
-
age: null,
|
|
277
|
-
birthDate: null,
|
|
278
|
-
transactionId: operationId,
|
|
279
|
-
},
|
|
280
|
-
}));
|
|
281
|
-
_h.label = 3;
|
|
265
|
+
_g.label = 3;
|
|
282
266
|
case 3: return [2 /*return*/];
|
|
283
267
|
}
|
|
284
268
|
});
|