@tap-payments/auth-jsconnect 2.4.51-test → 2.4.52-test
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.
|
@@ -4,6 +4,7 @@ export interface ConnectExpressLibProps extends LibConfig {
|
|
|
4
4
|
leadId?: string;
|
|
5
5
|
postURL: string;
|
|
6
6
|
showBoard?: boolean;
|
|
7
|
+
verifyToken?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare function ConnectExpressElement(props: ConnectExpressLibProps): JSX.Element;
|
|
9
10
|
export declare function renderConnectExpressLib(config: ConnectExpressLibProps, elementId: string): {
|
|
@@ -36,7 +36,7 @@ import { CONNECT_EXPRESS_SCREENS_NAVIGATION } from '../../constants';
|
|
|
36
36
|
import { connectExpressFeatureScreens } from '../featuresScreens';
|
|
37
37
|
import Background from '../shared/Background';
|
|
38
38
|
var ConnectExpress = memo(function (_a) {
|
|
39
|
-
var leadId = _a.leadId, postURL = _a.postURL, showBoard = _a.showBoard, props = __rest(_a, ["leadId", "postURL", "showBoard"]);
|
|
39
|
+
var leadId = _a.leadId, postURL = _a.postURL, showBoard = _a.showBoard, verifyToken = _a.verifyToken, props = __rest(_a, ["leadId", "postURL", "showBoard", "verifyToken"]);
|
|
40
40
|
var theme = useAppTheme().theme;
|
|
41
41
|
var dispatch = useAppDispatch();
|
|
42
42
|
var _b = useAppSelector(settingsSelector), data = _b.data, error = _b.error, settingLoading = _b.loading;
|
|
@@ -54,12 +54,11 @@ var ConnectExpress = memo(function (_a) {
|
|
|
54
54
|
}, []);
|
|
55
55
|
React.useEffect(function () {
|
|
56
56
|
if (data.isValidOperator && props.open && !settingLoading) {
|
|
57
|
-
|
|
58
|
-
if (token) {
|
|
57
|
+
if (verifyToken) {
|
|
59
58
|
var lang = getParameterByName('lang');
|
|
60
59
|
if (lang)
|
|
61
60
|
dispatch(handleLanguage(lang));
|
|
62
|
-
dispatch(verifyLeadToken({ token:
|
|
61
|
+
dispatch(verifyLeadToken({ token: verifyToken }));
|
|
63
62
|
return;
|
|
64
63
|
}
|
|
65
64
|
if (leadId) {
|