@dynamic-labs/sdk-react-core 4.73.2 → 4.74.1
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/CHANGELOG.md +20 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +12 -12
- package/src/lib/context/DynamicContext/DynamicContext.cjs +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useInitialViewType/useInitialViewType.cjs +6 -1
- package/src/lib/context/DynamicContext/hooks/useInitialViewType/useInitialViewType.d.ts +3 -1
- package/src/lib/context/DynamicContext/hooks/useInitialViewType/useInitialViewType.js +6 -1
- package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.cjs +8 -0
- package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.d.ts +3 -0
- package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.js +4 -0
- package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/index.d.ts +1 -0
- package/src/lib/shared/utils/functions/hasPendingRequirements/hasPendingRequirements.cjs +7 -1
- package/src/lib/shared/utils/functions/hasPendingRequirements/hasPendingRequirements.d.ts +1 -1
- package/src/lib/shared/utils/functions/hasPendingRequirements/hasPendingRequirements.js +7 -1
- package/src/lib/utils/hooks/useSyncDeviceRegistrationFlow/useSyncDeviceRegistrationFlow.cjs +5 -5
- package/src/lib/utils/hooks/useSyncDeviceRegistrationFlow/useSyncDeviceRegistrationFlow.js +5 -5
- package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/EmbeddedWalletExportSection/EmbeddedWalletExportSection.cjs +8 -2
- package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/EmbeddedWalletExportSection/EmbeddedWalletExportSection.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.74.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.74.0...v4.74.1) (2026-04-02)
|
|
3
|
+
|
|
4
|
+
This was a version bump only, there were no code changes.
|
|
5
|
+
|
|
6
|
+
## [4.74.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.73.2...v4.74.0) (2026-04-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client:** expose waitForReady() on SdkModule ([#10771](https://github.com/dynamic-labs/dynamic-auth/issues/10771)) ([8d94615](https://github.com/dynamic-labs/dynamic-auth/commit/8d946158ab284fe338c78cfba38504b1bca91cd7))
|
|
12
|
+
* **waas:** wire up signed session ID reverse channel ([#10577](https://github.com/dynamic-labs/dynamic-auth/issues/10577)) ([e07815f](https://github.com/dynamic-labs/dynamic-auth/commit/e07815ff370634c8a5a674cbf27bc79782a27f1a))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **react-native:** keep WebView ref valid during URL reloads ([#10769](https://github.com/dynamic-labs/dynamic-auth/issues/10769)) ([691bef2](https://github.com/dynamic-labs/dynamic-auth/commit/691bef277c5190b7cd88d12f95e2b6fbfa827b64))
|
|
18
|
+
* require device registration before sdk is in logged in state ([#10831](https://github.com/dynamic-labs/dynamic-auth/issues/10831)) ([7ebae17](https://github.com/dynamic-labs/dynamic-auth/commit/7ebae17f01b9db59b88dd997d511ff84bd6b2d1a))
|
|
19
|
+
* **waas:** always prompt for password on cloud backup/export operations [DYNT-269] ([#10829](https://github.com/dynamic-labs/dynamic-auth/issues/10829)) ([5d2898b](https://github.com/dynamic-labs/dynamic-auth/commit/5d2898b9e6e06bbf13813b912b366f522fb66b70))
|
|
20
|
+
* **webview:** preserve secure storage key map during recovery clear ([#10770](https://github.com/dynamic-labs/dynamic-auth/issues/10770)) ([888bfe9](https://github.com/dynamic-labs/dynamic-auth/commit/888bfe9f27dd3b4751dddf2027a3e4d219130860))
|
|
21
|
+
|
|
2
22
|
### [4.73.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.73.1...v4.73.2) (2026-03-31)
|
|
3
23
|
|
|
4
24
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.74.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.909",
|
|
6
6
|
"@dynamic-labs-sdk/client": "0.19.0",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"yup": "0.32.11",
|
|
17
17
|
"react-international-phone": "4.5.0",
|
|
18
18
|
"bs58": "5.0.0",
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
20
|
-
"@dynamic-labs/iconic": "4.
|
|
21
|
-
"@dynamic-labs/locale": "4.
|
|
22
|
-
"@dynamic-labs/logger": "4.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "4.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
25
|
-
"@dynamic-labs/store": "4.
|
|
26
|
-
"@dynamic-labs/types": "4.
|
|
27
|
-
"@dynamic-labs/utils": "4.
|
|
28
|
-
"@dynamic-labs/wallet-book": "4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.74.1",
|
|
20
|
+
"@dynamic-labs/iconic": "4.74.1",
|
|
21
|
+
"@dynamic-labs/locale": "4.74.1",
|
|
22
|
+
"@dynamic-labs/logger": "4.74.1",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "4.74.1",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.74.1",
|
|
25
|
+
"@dynamic-labs/store": "4.74.1",
|
|
26
|
+
"@dynamic-labs/types": "4.74.1",
|
|
27
|
+
"@dynamic-labs/utils": "4.74.1",
|
|
28
|
+
"@dynamic-labs/wallet-book": "4.74.1",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.74.1",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -743,6 +743,7 @@ const InnerDynamicContextProvider = (props) => {
|
|
|
743
743
|
isAuthenticated: isAuthenticated || Boolean(primaryWallet),
|
|
744
744
|
isBridgeFlow,
|
|
745
745
|
isMultiWalletEnabled: multiWallet,
|
|
746
|
+
user: user !== null && user !== void 0 ? user : userWithMissingInfo,
|
|
746
747
|
});
|
|
747
748
|
return (jsxRuntime.jsx(reactI18next.I18nextProvider, { i18n: i18nSDKInstance, children: jsxRuntime.jsxs(DynamicContext.Provider, { value: value, children: [(jsxRuntime.jsx("style", { nonce: cspNonce, children: main_global })), jsxRuntime.jsx(walletBook.WalletBookContextProvider, { walletBook: walletBook$1, children: jsxRuntime.jsx(ThemeContext.ThemeContextProvider, { cspNonce: cspNonce, customerTheme: parseTheme.parseTheme(theme, ((_w = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design) === null || _w === void 0 ? void 0 : _w.modal) || undefined), designSettings: projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design, children: jsxRuntime.jsx(LoadingContext.LoadingContextProvider, { children: jsxRuntime.jsxs(ViewContext.ViewContextProvider, { initialViewType: initialViewType, children: [networkValidationMode === 'always' && jsxRuntime.jsx(UseNetworkValidation.UseNetworkValidation, {}), jsxRuntime.jsx(CaptchaContext.CaptchaContextProvider, { children: jsxRuntime.jsx(AccountExistsContext.AccountExistsContextProvider, { children: jsxRuntime.jsx(WalletContext.WalletContextProvider, { children: jsxRuntime.jsx(VerificationContext.VerificationProvider, { children: jsxRuntime.jsx(PasskeyContext.PasskeyContextProvider, { children: jsxRuntime.jsx(DynamicWidgetContext.DynamicWidgetContextProvider, { children: jsxRuntime.jsx(DynamicBridgeWidgetContext.DynamicBridgeWidgetContextProvider, { children: jsxRuntime.jsx(OnrampContext.OnrampContextProvider, { children: jsxRuntime.jsx(AccessDeniedContext.AccessDeniedContextProvider, { children: jsxRuntime.jsx(SendBalanceContext.SendBalanceContextProvider, { children: jsxRuntime.jsx(WalletGroupContext.WalletGroupContextProvider, { children: jsxRuntime.jsx(UserFieldEditorContext.UserFieldEditorContextProvider, { children: jsxRuntime.jsx(ConnectWithOtpProvider.ConnectWithOtpProvider, { children: jsxRuntime.jsx(PhantomRedirectContext.PhantomRedirectContextProvider, { children: jsxRuntime.jsxs(SocialRedirectContext.SocialRedirectContextProvider, { children: [jsxRuntime.jsx(app.DynamicAuthFlow, {}), jsxRuntime.jsx(OnrampWidget.OnrampWidget, {}), jsxRuntime.jsx(SyncAuthFlow.SyncAuthFlow, {}), jsxRuntime.jsx(WalletConnectorEvents.WalletConnectorEvents, { connectorProps: connectorProps }), confirmationModal, jsxRuntime.jsx(ErrorBoundaryExclude.ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) })] }) }));
|
|
748
749
|
};
|
|
@@ -739,6 +739,7 @@ const InnerDynamicContextProvider = (props) => {
|
|
|
739
739
|
isAuthenticated: isAuthenticated || Boolean(primaryWallet),
|
|
740
740
|
isBridgeFlow,
|
|
741
741
|
isMultiWalletEnabled: multiWallet,
|
|
742
|
+
user: user !== null && user !== void 0 ? user : userWithMissingInfo,
|
|
742
743
|
});
|
|
743
744
|
return (jsx(I18nextProvider, { i18n: i18nSDKInstance, children: jsxs(DynamicContext.Provider, { value: value, children: [(jsx("style", { nonce: cspNonce, children: css_248z })), jsx(WalletBookContextProvider, { walletBook: walletBook, children: jsx(ThemeContextProvider, { cspNonce: cspNonce, customerTheme: parseTheme(theme, ((_w = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design) === null || _w === void 0 ? void 0 : _w.modal) || undefined), designSettings: projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.design, children: jsx(LoadingContextProvider, { children: jsxs(ViewContextProvider, { initialViewType: initialViewType, children: [networkValidationMode === 'always' && jsx(UseNetworkValidation, {}), jsx(CaptchaContextProvider, { children: jsx(AccountExistsContextProvider, { children: jsx(WalletContextProvider, { children: jsx(VerificationProvider, { children: jsx(PasskeyContextProvider, { children: jsx(DynamicWidgetContextProvider, { children: jsx(DynamicBridgeWidgetContextProvider, { children: jsx(OnrampContextProvider, { children: jsx(AccessDeniedContextProvider, { children: jsx(SendBalanceContextProvider, { children: jsx(WalletGroupContextProvider, { children: jsx(UserFieldEditorContextProvider, { children: jsx(ConnectWithOtpProvider, { children: jsx(PhantomRedirectContextProvider, { children: jsxs(SocialRedirectContextProvider, { children: [jsx(DynamicAuthFlow, {}), jsx(OnrampWidget, {}), jsx(SyncAuthFlow, {}), jsx(WalletConnectorEvents, { connectorProps: connectorProps }), confirmationModal, jsx(ErrorBoundaryExclude, { children: children })] }) }) }) }) }) }) }) }) }) }) }) }) }) }) })] }) }) }) })] }) }));
|
|
744
745
|
};
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
var hasPendingDeviceRegistration = require('../../../../shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.cjs');
|
|
7
|
+
|
|
8
|
+
const useInitialViewType = ({ isAuthenticated, bridgeOnboardingCompleted, isMultiWalletEnabled, isBridgeFlow, connectedWallets, user, }) => {
|
|
9
|
+
if (user && hasPendingDeviceRegistration.hasPendingDeviceRegistration(user)) {
|
|
10
|
+
return 'device-registration';
|
|
11
|
+
}
|
|
7
12
|
// when multiwallet enabled, and user wants to link wallet
|
|
8
13
|
// show wallet-list view
|
|
9
14
|
if (isAuthenticated || bridgeOnboardingCompleted) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserProfile } from '@dynamic-labs/types';
|
|
1
2
|
import { Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
2
3
|
type UseInitialViewTypeProps = {
|
|
3
4
|
isAuthenticated: boolean;
|
|
@@ -5,6 +6,7 @@ type UseInitialViewTypeProps = {
|
|
|
5
6
|
isMultiWalletEnabled: boolean;
|
|
6
7
|
isBridgeFlow: boolean;
|
|
7
8
|
connectedWallets: Wallet[];
|
|
9
|
+
user: UserProfile | undefined;
|
|
8
10
|
};
|
|
9
|
-
export declare const useInitialViewType: ({ isAuthenticated, bridgeOnboardingCompleted, isMultiWalletEnabled, isBridgeFlow, connectedWallets, }: UseInitialViewTypeProps) => "multi-wallet-wallet-list" | "wallet-list" | "bridge-welcome" | "login-with-email-or-wallet";
|
|
11
|
+
export declare const useInitialViewType: ({ isAuthenticated, bridgeOnboardingCompleted, isMultiWalletEnabled, isBridgeFlow, connectedWallets, user, }: UseInitialViewTypeProps) => "device-registration" | "multi-wallet-wallet-list" | "wallet-list" | "bridge-welcome" | "login-with-email-or-wallet";
|
|
10
12
|
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
|
|
2
|
+
import { hasPendingDeviceRegistration } from '../../../../shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.js';
|
|
3
|
+
|
|
4
|
+
const useInitialViewType = ({ isAuthenticated, bridgeOnboardingCompleted, isMultiWalletEnabled, isBridgeFlow, connectedWallets, user, }) => {
|
|
5
|
+
if (user && hasPendingDeviceRegistration(user)) {
|
|
6
|
+
return 'device-registration';
|
|
7
|
+
}
|
|
3
8
|
// when multiwallet enabled, and user wants to link wallet
|
|
4
9
|
// show wallet-list view
|
|
5
10
|
if (isAuthenticated || bridgeOnboardingCompleted) {
|
package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const hasPendingDeviceRegistration = (user) => { var _a; return (_a = user.scope) === null || _a === void 0 ? void 0 : _a.includes('device:register'); };
|
|
7
|
+
|
|
8
|
+
exports.hasPendingDeviceRegistration = hasPendingDeviceRegistration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { hasPendingDeviceRegistration } from './hasPendingDeviceRegistration';
|
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var hasPendingMfaAction = require('../hasPendingMfaAction/hasPendingMfaAction.cjs');
|
|
7
|
+
var hasPendingDeviceRegistration = require('../hasPendingDeviceRegistration/hasPendingDeviceRegistration.cjs');
|
|
7
8
|
|
|
8
|
-
const hasPendingRequirements = (user) => {
|
|
9
|
+
const hasPendingRequirements = (user) => {
|
|
10
|
+
var _a;
|
|
11
|
+
return Boolean((_a = user.missingFields) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
12
|
+
hasPendingMfaAction.hasPendingMfaAction(user) ||
|
|
13
|
+
hasPendingDeviceRegistration.hasPendingDeviceRegistration(user);
|
|
14
|
+
};
|
|
9
15
|
|
|
10
16
|
exports.hasPendingRequirements = hasPendingRequirements;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UserProfile } from '@dynamic-labs/types';
|
|
2
2
|
import { SdkUser } from '@dynamic-labs/sdk-api-core';
|
|
3
|
-
export declare const hasPendingRequirements: (user: UserProfile | SdkUser) => boolean;
|
|
3
|
+
export declare const hasPendingRequirements: (user: UserProfile | SdkUser) => boolean | undefined;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { hasPendingMfaAction } from '../hasPendingMfaAction/hasPendingMfaAction.js';
|
|
3
|
+
import { hasPendingDeviceRegistration } from '../hasPendingDeviceRegistration/hasPendingDeviceRegistration.js';
|
|
3
4
|
|
|
4
|
-
const hasPendingRequirements = (user) => {
|
|
5
|
+
const hasPendingRequirements = (user) => {
|
|
6
|
+
var _a;
|
|
7
|
+
return Boolean((_a = user.missingFields) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
8
|
+
hasPendingMfaAction(user) ||
|
|
9
|
+
hasPendingDeviceRegistration(user);
|
|
10
|
+
};
|
|
5
11
|
|
|
6
12
|
export { hasPendingRequirements };
|
|
@@ -18,6 +18,7 @@ require('@dynamic-labs/utils');
|
|
|
18
18
|
require('../../constants/colors.cjs');
|
|
19
19
|
require('../../constants/values.cjs');
|
|
20
20
|
require('@dynamic-labs/sdk-api-core');
|
|
21
|
+
var hasPendingDeviceRegistration = require('../../../shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.cjs');
|
|
21
22
|
require('../../../shared/consts/index.cjs');
|
|
22
23
|
require('../../../events/dynamicEvents.cjs');
|
|
23
24
|
require('../../../context/CaptchaContext/CaptchaContext.cjs');
|
|
@@ -120,14 +121,14 @@ const useSyncDeviceRegistrationFlow = () => {
|
|
|
120
121
|
React.useEffect(() => {
|
|
121
122
|
let cancelled = false;
|
|
122
123
|
const syncDeviceRegistration = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
123
|
-
var _a
|
|
124
|
+
var _a;
|
|
124
125
|
if (!sdkHasLoaded || !userWithMissingInfo) {
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
if (!(
|
|
128
|
+
if (!hasPendingDeviceRegistration.hasPendingDeviceRegistration(userWithMissingInfo)) {
|
|
128
129
|
return;
|
|
129
130
|
}
|
|
130
|
-
const url = ((
|
|
131
|
+
const url = ((_a = getInitialUrl.getInitialUrl()) === null || _a === void 0 ? void 0 : _a.href) || window.location.href;
|
|
131
132
|
// If the user arrived via the device registration email link,
|
|
132
133
|
// complete registration directly without showing the modal
|
|
133
134
|
if (client.detectDeviceRegistrationRedirect({ url })) {
|
|
@@ -151,8 +152,7 @@ const useSyncDeviceRegistrationFlow = () => {
|
|
|
151
152
|
if (deviceRegistrationModal && !deviceRegistrationModal.enabled) {
|
|
152
153
|
return;
|
|
153
154
|
}
|
|
154
|
-
setShowAuthFlow(true
|
|
155
|
-
clearStackAndPush('device-registration');
|
|
155
|
+
setShowAuthFlow(true);
|
|
156
156
|
});
|
|
157
157
|
syncDeviceRegistration();
|
|
158
158
|
return () => {
|
|
@@ -14,6 +14,7 @@ import '@dynamic-labs/utils';
|
|
|
14
14
|
import '../../constants/colors.js';
|
|
15
15
|
import '../../constants/values.js';
|
|
16
16
|
import '@dynamic-labs/sdk-api-core';
|
|
17
|
+
import { hasPendingDeviceRegistration } from '../../../shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.js';
|
|
17
18
|
import '../../../shared/consts/index.js';
|
|
18
19
|
import '../../../events/dynamicEvents.js';
|
|
19
20
|
import '../../../context/CaptchaContext/CaptchaContext.js';
|
|
@@ -116,14 +117,14 @@ const useSyncDeviceRegistrationFlow = () => {
|
|
|
116
117
|
useEffect(() => {
|
|
117
118
|
let cancelled = false;
|
|
118
119
|
const syncDeviceRegistration = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
119
|
-
var _a
|
|
120
|
+
var _a;
|
|
120
121
|
if (!sdkHasLoaded || !userWithMissingInfo) {
|
|
121
122
|
return;
|
|
122
123
|
}
|
|
123
|
-
if (!(
|
|
124
|
+
if (!hasPendingDeviceRegistration(userWithMissingInfo)) {
|
|
124
125
|
return;
|
|
125
126
|
}
|
|
126
|
-
const url = ((
|
|
127
|
+
const url = ((_a = getInitialUrl()) === null || _a === void 0 ? void 0 : _a.href) || window.location.href;
|
|
127
128
|
// If the user arrived via the device registration email link,
|
|
128
129
|
// complete registration directly without showing the modal
|
|
129
130
|
if (detectDeviceRegistrationRedirect({ url })) {
|
|
@@ -147,8 +148,7 @@ const useSyncDeviceRegistrationFlow = () => {
|
|
|
147
148
|
if (deviceRegistrationModal && !deviceRegistrationModal.enabled) {
|
|
148
149
|
return;
|
|
149
150
|
}
|
|
150
|
-
setShowAuthFlow(true
|
|
151
|
-
clearStackAndPush('device-registration');
|
|
151
|
+
setShowAuthFlow(true);
|
|
152
152
|
});
|
|
153
153
|
syncDeviceRegistration();
|
|
154
154
|
return () => {
|
|
@@ -172,6 +172,12 @@ const EmbeddedWalletExportSection = () => {
|
|
|
172
172
|
pushView('reset-password-flow');
|
|
173
173
|
}, [setShowAuthFlow, pushView]);
|
|
174
174
|
const handleExportClick = React.useCallback((recoveryPhrase) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
175
|
+
var _l;
|
|
176
|
+
logger.logger.info('Starting embedded wallet export process', {
|
|
177
|
+
userId: user === null || user === void 0 ? void 0 : user.userId,
|
|
178
|
+
walletId: wallet === null || wallet === void 0 ? void 0 : wallet.id,
|
|
179
|
+
walletName: (_l = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _l === void 0 ? void 0 : _l.name,
|
|
180
|
+
});
|
|
175
181
|
const stepUpRequired = yield isStepUpRequired({
|
|
176
182
|
scope: sdkApiCore.TokenScope.Walletexport,
|
|
177
183
|
});
|
|
@@ -181,7 +187,7 @@ const EmbeddedWalletExportSection = () => {
|
|
|
181
187
|
requestedScopes: [sdkApiCore.TokenScope.Walletexport],
|
|
182
188
|
});
|
|
183
189
|
}
|
|
184
|
-
catch (
|
|
190
|
+
catch (_m) {
|
|
185
191
|
return;
|
|
186
192
|
}
|
|
187
193
|
}
|
|
@@ -193,7 +199,7 @@ const EmbeddedWalletExportSection = () => {
|
|
|
193
199
|
try {
|
|
194
200
|
yield promptMfa({ createMfaToken: true });
|
|
195
201
|
}
|
|
196
|
-
catch (
|
|
202
|
+
catch (_o) {
|
|
197
203
|
return;
|
|
198
204
|
}
|
|
199
205
|
}
|
|
@@ -168,6 +168,12 @@ const EmbeddedWalletExportSection = () => {
|
|
|
168
168
|
pushView('reset-password-flow');
|
|
169
169
|
}, [setShowAuthFlow, pushView]);
|
|
170
170
|
const handleExportClick = useCallback((recoveryPhrase) => __awaiter(void 0, void 0, void 0, function* () {
|
|
171
|
+
var _l;
|
|
172
|
+
logger.info('Starting embedded wallet export process', {
|
|
173
|
+
userId: user === null || user === void 0 ? void 0 : user.userId,
|
|
174
|
+
walletId: wallet === null || wallet === void 0 ? void 0 : wallet.id,
|
|
175
|
+
walletName: (_l = wallet === null || wallet === void 0 ? void 0 : wallet.connector) === null || _l === void 0 ? void 0 : _l.name,
|
|
176
|
+
});
|
|
171
177
|
const stepUpRequired = yield isStepUpRequired({
|
|
172
178
|
scope: TokenScope.Walletexport,
|
|
173
179
|
});
|
|
@@ -177,7 +183,7 @@ const EmbeddedWalletExportSection = () => {
|
|
|
177
183
|
requestedScopes: [TokenScope.Walletexport],
|
|
178
184
|
});
|
|
179
185
|
}
|
|
180
|
-
catch (
|
|
186
|
+
catch (_m) {
|
|
181
187
|
return;
|
|
182
188
|
}
|
|
183
189
|
}
|
|
@@ -189,7 +195,7 @@ const EmbeddedWalletExportSection = () => {
|
|
|
189
195
|
try {
|
|
190
196
|
yield promptMfa({ createMfaToken: true });
|
|
191
197
|
}
|
|
192
|
-
catch (
|
|
198
|
+
catch (_o) {
|
|
193
199
|
return;
|
|
194
200
|
}
|
|
195
201
|
}
|