@dynamic-labs/sdk-react-core 4.73.2 → 4.74.0

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.
Files changed (20) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +12 -12
  5. package/src/lib/context/DynamicContext/DynamicContext.cjs +1 -0
  6. package/src/lib/context/DynamicContext/DynamicContext.js +1 -0
  7. package/src/lib/context/DynamicContext/hooks/useInitialViewType/useInitialViewType.cjs +6 -1
  8. package/src/lib/context/DynamicContext/hooks/useInitialViewType/useInitialViewType.d.ts +3 -1
  9. package/src/lib/context/DynamicContext/hooks/useInitialViewType/useInitialViewType.js +6 -1
  10. package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.cjs +8 -0
  11. package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.d.ts +3 -0
  12. package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/hasPendingDeviceRegistration.js +4 -0
  13. package/src/lib/shared/utils/functions/hasPendingDeviceRegistration/index.d.ts +1 -0
  14. package/src/lib/shared/utils/functions/hasPendingRequirements/hasPendingRequirements.cjs +7 -1
  15. package/src/lib/shared/utils/functions/hasPendingRequirements/hasPendingRequirements.d.ts +1 -1
  16. package/src/lib/shared/utils/functions/hasPendingRequirements/hasPendingRequirements.js +7 -1
  17. package/src/lib/utils/hooks/useSyncDeviceRegistrationFlow/useSyncDeviceRegistrationFlow.cjs +5 -5
  18. package/src/lib/utils/hooks/useSyncDeviceRegistrationFlow/useSyncDeviceRegistrationFlow.js +5 -5
  19. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/EmbeddedWalletExportSection/EmbeddedWalletExportSection.cjs +8 -2
  20. package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/EmbeddedWalletExportSection/EmbeddedWalletExportSection.js +8 -2
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## [4.74.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.73.2...v4.74.0) (2026-04-02)
3
+
4
+
5
+ ### Features
6
+
7
+ * **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))
8
+ * **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))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **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))
14
+ * 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))
15
+ * **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))
16
+ * **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))
17
+
2
18
  ### [4.73.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.73.1...v4.73.2) (2026-03-31)
3
19
 
4
20
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.73.2";
6
+ var version = "4.74.0";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.909",
9
9
  "@dynamic-labs-sdk/client": "0.19.0",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "4.73.2";
2
+ var version = "4.74.0";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.909",
5
5
  "@dynamic-labs-sdk/client": "0.19.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "4.73.2",
3
+ "version": "4.74.0",
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.73.2",
20
- "@dynamic-labs/iconic": "4.73.2",
21
- "@dynamic-labs/locale": "4.73.2",
22
- "@dynamic-labs/logger": "4.73.2",
23
- "@dynamic-labs/multi-wallet": "4.73.2",
24
- "@dynamic-labs/rpc-providers": "4.73.2",
25
- "@dynamic-labs/store": "4.73.2",
26
- "@dynamic-labs/types": "4.73.2",
27
- "@dynamic-labs/utils": "4.73.2",
28
- "@dynamic-labs/wallet-book": "4.73.2",
29
- "@dynamic-labs/wallet-connector-core": "4.73.2",
19
+ "@dynamic-labs/assert-package-version": "4.74.0",
20
+ "@dynamic-labs/iconic": "4.74.0",
21
+ "@dynamic-labs/locale": "4.74.0",
22
+ "@dynamic-labs/logger": "4.74.0",
23
+ "@dynamic-labs/multi-wallet": "4.74.0",
24
+ "@dynamic-labs/rpc-providers": "4.74.0",
25
+ "@dynamic-labs/store": "4.74.0",
26
+ "@dynamic-labs/types": "4.74.0",
27
+ "@dynamic-labs/utils": "4.74.0",
28
+ "@dynamic-labs/wallet-book": "4.74.0",
29
+ "@dynamic-labs/wallet-connector-core": "4.74.0",
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
- const useInitialViewType = ({ isAuthenticated, bridgeOnboardingCompleted, isMultiWalletEnabled, isBridgeFlow, connectedWallets, }) => {
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
- const useInitialViewType = ({ isAuthenticated, bridgeOnboardingCompleted, isMultiWalletEnabled, isBridgeFlow, connectedWallets, }) => {
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) {
@@ -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,3 @@
1
+ import { SdkUser } from '@dynamic-labs/sdk-api-core';
2
+ import { UserProfile } from '@dynamic-labs/types';
3
+ export declare const hasPendingDeviceRegistration: (user: UserProfile | SdkUser) => boolean | undefined;
@@ -0,0 +1,4 @@
1
+ 'use client'
2
+ const hasPendingDeviceRegistration = (user) => { var _a; return (_a = user.scope) === null || _a === void 0 ? void 0 : _a.includes('device:register'); };
3
+
4
+ export { 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) => { var _a; return Boolean((_a = user.missingFields) === null || _a === void 0 ? void 0 : _a.length) || hasPendingMfaAction.hasPendingMfaAction(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) => { var _a; return Boolean((_a = user.missingFields) === null || _a === void 0 ? void 0 : _a.length) || hasPendingMfaAction(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, _b;
124
+ var _a;
124
125
  if (!sdkHasLoaded || !userWithMissingInfo) {
125
126
  return;
126
127
  }
127
- if (!((_a = userWithMissingInfo.scope) === null || _a === void 0 ? void 0 : _a.includes('device:register'))) {
128
+ if (!hasPendingDeviceRegistration.hasPendingDeviceRegistration(userWithMissingInfo)) {
128
129
  return;
129
130
  }
130
- const url = ((_b = getInitialUrl.getInitialUrl()) === null || _b === void 0 ? void 0 : _b.href) || window.location.href;
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, { ignoreIfIsEmbeddedWidget: false });
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, _b;
120
+ var _a;
120
121
  if (!sdkHasLoaded || !userWithMissingInfo) {
121
122
  return;
122
123
  }
123
- if (!((_a = userWithMissingInfo.scope) === null || _a === void 0 ? void 0 : _a.includes('device:register'))) {
124
+ if (!hasPendingDeviceRegistration(userWithMissingInfo)) {
124
125
  return;
125
126
  }
126
- const url = ((_b = getInitialUrl()) === null || _b === void 0 ? void 0 : _b.href) || window.location.href;
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, { ignoreIfIsEmbeddedWidget: false });
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 (_l) {
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 (_m) {
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 (_l) {
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 (_m) {
198
+ catch (_o) {
193
199
  return;
194
200
  }
195
201
  }