@tap-payments/auth-jsconnect 2.13.8-beta → 2.13.9-beta
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/build/api/auth.d.ts +1 -1
- package/build/api/auth.js +7 -3
- package/build/api/index.d.ts +1 -1
- package/build/assets/locales/ar.json +1 -0
- package/build/assets/locales/en.json +3 -2
- package/build/constants/app.js +94 -14
- package/build/features/app/auth/authStore.js +50 -40
- package/build/features/app/bank/bankStore.js +24 -20
- package/build/features/app/board/boardStore.js +11 -7
- package/build/features/app/brand/brandStore.js +22 -18
- package/build/features/app/business/businessStore.js +30 -26
- package/build/features/app/connect/connectStore.js +26 -22
- package/build/features/app/connectExpress/connectExpressStore.js +19 -7
- package/build/features/app/entity/entityStore.js +21 -17
- package/build/features/app/individual/individualStore.js +29 -25
- package/build/features/app/password/passwordStore.js +44 -46
- package/build/features/app/signIn/signInStore.js +12 -16
- package/build/features/app/tax/taxStore.js +20 -16
- package/build/features/featuresScreens.js +55 -0
- package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
- package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
- package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
- package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import ConnectOTPScreen from './connect/screens/OTP';
|
|
|
13
13
|
import ThankYouScreen from './connect/screens/ThankYou';
|
|
14
14
|
import OperatorError from './connect/screens/OperatorError';
|
|
15
15
|
import CollectMobileOwnership from './connect/screens/MobileOwnership';
|
|
16
|
+
import OTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
16
17
|
import ConnectExpressBusinessCountry from './connectExpress/screens/BusinessCountry/BusinessCountry';
|
|
17
18
|
import ConnectExpressMobileScreen from './connectExpress/screens/Mobile';
|
|
18
19
|
import ConnectExpressNIDScreen from './connectExpress/screens/NID';
|
|
@@ -37,6 +38,7 @@ import ConnectExpressAuthMerchantScreen from './connectExpress/screens/AuthMerch
|
|
|
37
38
|
import ConnectExpressAuthAccountCreatedLoaderScreen from './connectExpress/screens/AccountCreatedLoader';
|
|
38
39
|
import ConnectExpressOperatorError from './connectExpress/screens/OperatorError';
|
|
39
40
|
import ConnectExpressCollectMobileOwnership from './connectExpress/screens/MobileOwnership';
|
|
41
|
+
import ConnectExpressOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
40
42
|
import AuthBusinessCountry from './auth/screens/BusinessCountry/BusinessCountry';
|
|
41
43
|
import AuthSwitchScreen from './auth/screens/AuthSwitch';
|
|
42
44
|
import AuthMobileScreen from './auth/screens/Mobile';
|
|
@@ -58,6 +60,7 @@ import AuthEmailSentScreen from './auth/screens/EmailSent';
|
|
|
58
60
|
import AuthMigratingDataScreen from './auth/screens/MigratingData';
|
|
59
61
|
import AuthOperatorError from './auth/screens/OperatorError';
|
|
60
62
|
import AuthPasscodeScreen from './auth/screens/Passcode';
|
|
63
|
+
import AuthOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
61
64
|
import CustomersPage from './business/screens/Customers';
|
|
62
65
|
import IDBODPage from './business/screens/IDBOD';
|
|
63
66
|
import BusinessVerifyPage from './business/screens/Verify';
|
|
@@ -73,6 +76,7 @@ import BusVerifyPACIScreen from './business/screens/VerifyPACI';
|
|
|
73
76
|
import BrandVerifyScreen from './business/screens/BrandDetails';
|
|
74
77
|
import BusinessOperatorError from './business/screens/OperatorError';
|
|
75
78
|
import BusinessCollectMobileOwnership from './business/screens/MobileOwnership';
|
|
79
|
+
import BusinessOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
76
80
|
import PasswordVerifyPage from './password/screens/Verify';
|
|
77
81
|
import CreatePasswordPage from './password/screens/CreatePassword';
|
|
78
82
|
import PasswordDataLoadingPage from './password/screens/PrepareDataLoading';
|
|
@@ -81,6 +85,7 @@ import SuccessPasswordPage from './password/screens/Success';
|
|
|
81
85
|
import PasswordSuccessWithFlowPage from './password/screens/SuccessWithFlowButtons';
|
|
82
86
|
import PasswordResetPasswordSuccessPage from './password/screens/ResetPasswordSuccess';
|
|
83
87
|
import PasswordOperatorError from './password/screens/OperatorError';
|
|
88
|
+
import PasswordOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
84
89
|
import IndividualVerifyPage from './individual/screens/Verify';
|
|
85
90
|
import IndividualPhoneInfoPage from './individual/screens/IndividualPhoneInfo';
|
|
86
91
|
import IndividualListPage from './individual/screens/IndividualList';
|
|
@@ -91,6 +96,7 @@ import IndividualSuccessWithFlowPage from './individual/screens/SuccessWithFlowB
|
|
|
91
96
|
import IndividualResetPasswordSuccessPage from './individual/screens/ResetPasswordSuccess';
|
|
92
97
|
import IndividualDataLoadingPage from './individual/screens/PrepareDataLoading';
|
|
93
98
|
import IndividualOperatorError from './individual/screens/OperatorError';
|
|
99
|
+
import IndividualOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
94
100
|
import BankVerifyPage from './bank/screens/Verify';
|
|
95
101
|
import BankDetailsPage from './bank/screens/BankDetails';
|
|
96
102
|
import BankSuccessPage from './bank/screens/Success';
|
|
@@ -98,6 +104,7 @@ import BankSuccessWithFlowPage from './bank/screens/SuccessWithFlowButtons';
|
|
|
98
104
|
import BankResetPasswordSuccessPage from './bank/screens/ResetPasswordSuccess';
|
|
99
105
|
import BankDataLoadingPage from './bank/screens/PrepareDataLoading';
|
|
100
106
|
import BankOperatorError from './bank/screens/OperatorError';
|
|
107
|
+
import BankOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
101
108
|
import TaxVerifyPage from './tax/screens/Verify';
|
|
102
109
|
import TaxDetailsPage from './tax/screens/TaxDetails';
|
|
103
110
|
import TaxSuccessPage from './tax/screens/Success';
|
|
@@ -105,6 +112,7 @@ import TaxSuccessWithFlowPage from './tax/screens/SuccessWithFlowButtons';
|
|
|
105
112
|
import TaxResetPasswordSuccessPage from './tax/screens/ResetPasswordSuccess';
|
|
106
113
|
import TaxDataLoadingPage from './tax/screens/PrepareDataLoading';
|
|
107
114
|
import TaxOperatorError from './tax/screens/OperatorError';
|
|
115
|
+
import TaxOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
108
116
|
import SignInMobilePage from './signIn/screens/Mobile';
|
|
109
117
|
import SignInEmailPage from './signIn/screens/Email';
|
|
110
118
|
import SignInOTPPage from './signIn/screens/OTP';
|
|
@@ -118,6 +126,7 @@ import EntitySuccessWithFlowPage from './entity/screens/SuccessWithFlowButtons';
|
|
|
118
126
|
import EntityResetPasswordSuccessPage from './entity/screens/ResetPasswordSuccess';
|
|
119
127
|
import EntityDataLoadingPage from './entity/screens/PrepareDataLoading';
|
|
120
128
|
import EntityOperatorError from './entity/screens/OperatorError';
|
|
129
|
+
import EntityOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
121
130
|
import BrandVerifyPage from './brand/screens/Verify';
|
|
122
131
|
import BrandInfoPage from './brand/screens/BrandInfo';
|
|
123
132
|
import BrandSegmentPage from './brand/screens/BrandSegmentInfo';
|
|
@@ -127,11 +136,13 @@ import BrandSuccessWithFlowPage from './brand/screens/SuccessWithFlowButtons';
|
|
|
127
136
|
import BrandResetPasswordSuccessPage from './brand/screens/ResetPasswordSuccess';
|
|
128
137
|
import BrandDataLoadingPage from './brand/screens/PrepareDataLoading';
|
|
129
138
|
import BrandOperatorError from './brand/screens/OperatorError';
|
|
139
|
+
import BrandOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
130
140
|
import BoardVerifyPage from './board/screens/Verify';
|
|
131
141
|
import BoardSuccessWithFlowPage from './board/screens/SuccessWithFlowButtons';
|
|
132
142
|
import BoardResetPasswordSuccessPage from './board/screens/ResetPasswordSuccess';
|
|
133
143
|
import BoardDataLoadingPage from './board/screens/PrepareDataLoading';
|
|
134
144
|
import BoardOperatorError from './board/screens/OperatorError';
|
|
145
|
+
import BoardOTPVerifySecurityError from './shared/OTPVerifySecurityError';
|
|
135
146
|
import KycLoadingPage from './kyc/screens/Loading';
|
|
136
147
|
import KycTokenErrorPage from './kyc/screens/TokenError';
|
|
137
148
|
import KycAlreadySubmittedPage from './kyc/screens/AlreadySubmitted';
|
|
@@ -197,6 +208,10 @@ export var connectFeatureScreens = [
|
|
|
197
208
|
{
|
|
198
209
|
name: 'CONNECT_MOBILE_OWNERSHIP',
|
|
199
210
|
element: CollectMobileOwnership
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'CONNECT_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
214
|
+
element: OTPVerifySecurityError
|
|
200
215
|
}
|
|
201
216
|
];
|
|
202
217
|
export var connectExpressFeatureScreens = [
|
|
@@ -295,6 +310,10 @@ export var connectExpressFeatureScreens = [
|
|
|
295
310
|
{
|
|
296
311
|
name: 'COLLECT_MOBILE_OWNERSHIP',
|
|
297
312
|
element: ConnectExpressCollectMobileOwnership
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: 'CONNECT_EXPRESS_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
316
|
+
element: ConnectExpressOTPVerifySecurityError
|
|
298
317
|
}
|
|
299
318
|
];
|
|
300
319
|
export var authFeatureScreens = [
|
|
@@ -381,6 +400,10 @@ export var authFeatureScreens = [
|
|
|
381
400
|
{
|
|
382
401
|
name: 'AUTH_OPERATOR_ERROR_STEP',
|
|
383
402
|
element: AuthOperatorError
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: 'AUTH_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
406
|
+
element: AuthOTPVerifySecurityError
|
|
384
407
|
}
|
|
385
408
|
];
|
|
386
409
|
export var businessFeatureScreens = [
|
|
@@ -431,6 +454,10 @@ export var businessFeatureScreens = [
|
|
|
431
454
|
{
|
|
432
455
|
name: 'BUSINESS_MOBILE_OWNERSHIP',
|
|
433
456
|
element: BusinessCollectMobileOwnership
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
name: 'BUSINESS_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
460
|
+
element: BusinessOTPVerifySecurityError
|
|
434
461
|
}
|
|
435
462
|
];
|
|
436
463
|
export var passwordFeatureScreens = [
|
|
@@ -462,6 +489,10 @@ export var passwordFeatureScreens = [
|
|
|
462
489
|
{
|
|
463
490
|
name: 'PASSWORD_OPERATOR_ERROR_STEP',
|
|
464
491
|
element: PasswordOperatorError
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
name: 'PASSWORD_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
495
|
+
element: PasswordOTPVerifySecurityError
|
|
465
496
|
}
|
|
466
497
|
];
|
|
467
498
|
export var individualFeatureScreens = [
|
|
@@ -501,6 +532,10 @@ export var individualFeatureScreens = [
|
|
|
501
532
|
{
|
|
502
533
|
name: 'INDIVIDUAL_OPERATOR_ERROR_STEP',
|
|
503
534
|
element: IndividualOperatorError
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: 'INDIVIDUAL_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
538
|
+
element: IndividualOTPVerifySecurityError
|
|
504
539
|
}
|
|
505
540
|
];
|
|
506
541
|
export var bankFeatureScreens = [
|
|
@@ -528,6 +563,10 @@ export var bankFeatureScreens = [
|
|
|
528
563
|
{
|
|
529
564
|
name: 'BANK_OPERATOR_ERROR_STEP',
|
|
530
565
|
element: BankOperatorError
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
name: 'BANK_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
569
|
+
element: BankOTPVerifySecurityError
|
|
531
570
|
}
|
|
532
571
|
];
|
|
533
572
|
export var taxFeatureScreens = [
|
|
@@ -555,6 +594,10 @@ export var taxFeatureScreens = [
|
|
|
555
594
|
{
|
|
556
595
|
name: 'TAX_OPERATOR_ERROR_STEP',
|
|
557
596
|
element: TaxOperatorError
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
name: 'TAX_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
600
|
+
element: TaxOTPVerifySecurityError
|
|
558
601
|
}
|
|
559
602
|
];
|
|
560
603
|
export var signInFeatureScreens = [
|
|
@@ -608,6 +651,10 @@ export var entityFeatureScreens = [
|
|
|
608
651
|
{
|
|
609
652
|
name: 'ENTITY_OPERATOR_ERROR_STEP',
|
|
610
653
|
element: EntityOperatorError
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: 'ENTITY_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
657
|
+
element: EntityOTPVerifySecurityError
|
|
611
658
|
}
|
|
612
659
|
];
|
|
613
660
|
export var brandFeatureScreens = [
|
|
@@ -643,6 +690,10 @@ export var brandFeatureScreens = [
|
|
|
643
690
|
{
|
|
644
691
|
name: 'BRAND_OPERATOR_ERROR_STEP',
|
|
645
692
|
element: BrandOperatorError
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
name: 'BRAND_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
696
|
+
element: BrandOTPVerifySecurityError
|
|
646
697
|
}
|
|
647
698
|
];
|
|
648
699
|
export var boardFeatureScreens = [
|
|
@@ -665,6 +716,10 @@ export var boardFeatureScreens = [
|
|
|
665
716
|
{
|
|
666
717
|
name: 'BOARD_OPERATOR_ERROR_STEP',
|
|
667
718
|
element: BoardOperatorError
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
name: 'BOARD_OTP_VERIFY_SECURITY_ERROR_STEP',
|
|
722
|
+
element: BoardOTPVerifySecurityError
|
|
668
723
|
}
|
|
669
724
|
];
|
|
670
725
|
export var kycFeatureScreens = [
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import GenericError from '../../shared/GenericError';
|
|
5
|
+
var OTPVerifySecurityError = function () {
|
|
6
|
+
var t = useTranslation().t;
|
|
7
|
+
return _jsx(GenericError, { error: t('something_went_wrong'), errorTitle: t('oops') });
|
|
8
|
+
};
|
|
9
|
+
export default React.memo(OTPVerifySecurityError);
|
package/build/utils/error.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export declare const isNetworkError: (error: string | null) => boolean;
|
|
|
2
2
|
export declare const isTokenExpired: (error: string | null) => boolean;
|
|
3
3
|
export declare const isTimeoutError: (error: string | null) => boolean;
|
|
4
4
|
export declare const isInternalServerError: (error: string | null) => boolean;
|
|
5
|
+
export declare const isAuthenticationVerificationFailed: (error: string | null) => boolean;
|
package/build/utils/error.js
CHANGED
|
@@ -10,3 +10,6 @@ export var isTimeoutError = function (error) {
|
|
|
10
10
|
export var isInternalServerError = function (error) {
|
|
11
11
|
return ['internal_server_error'].includes((error || '').trim().toLowerCase());
|
|
12
12
|
};
|
|
13
|
+
export var isAuthenticationVerificationFailed = function (error) {
|
|
14
|
+
return ['failed to verify the auth'].includes((error || '').trim().toLowerCase());
|
|
15
|
+
};
|