@dynamic-labs-sdk/client 1.23.0 → 1.24.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.
- package/dist/{NativeModuleNotLinkedError-DIpQjh_K.native.esm.js → NativeModuleNotLinkedError-CJy_4-6r.native.esm.js} +3 -3
- package/dist/{NativeModuleNotLinkedError-DIpQjh_K.native.esm.js.map → NativeModuleNotLinkedError-CJy_4-6r.native.esm.js.map} +1 -1
- package/dist/{consumeMfaTokenIfRequiredForAction-pUcqlY3s.cjs → consumeMfaTokenIfRequiredForAction-B6nFE5IO.cjs} +2 -2
- package/dist/{consumeMfaTokenIfRequiredForAction-pUcqlY3s.cjs.map → consumeMfaTokenIfRequiredForAction-B6nFE5IO.cjs.map} +1 -1
- package/dist/{consumeMfaTokenIfRequiredForAction-jsAdDyDj.esm.js → consumeMfaTokenIfRequiredForAction-DXTH4qki.esm.js} +2 -2
- package/dist/{consumeMfaTokenIfRequiredForAction-jsAdDyDj.esm.js.map → consumeMfaTokenIfRequiredForAction-DXTH4qki.esm.js.map} +1 -1
- package/dist/core.cjs +7 -6
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +7 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +6 -6
- package/dist/core.native.esm.js.map +1 -1
- package/dist/exports/core.d.ts +2 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +2 -1
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DPFHY3b8.cjs → getNetworkProviderFromNetworkId-CZjFA5G8.cjs} +64 -2
- package/dist/getNetworkProviderFromNetworkId-CZjFA5G8.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DTNPpR5H.esm.js → getNetworkProviderFromNetworkId-CjdC5HjA.esm.js} +59 -3
- package/dist/getNetworkProviderFromNetworkId-CjdC5HjA.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-YcalZlDG.native.esm.js → getNetworkProviderFromNetworkId-R8IKGc6s.native.esm.js} +59 -261
- package/dist/getNetworkProviderFromNetworkId-R8IKGc6s.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BjhgfsJD.native.esm.js → getSignedSessionId-B6Eqmue0.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-BjhgfsJD.native.esm.js.map → getSignedSessionId-B6Eqmue0.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-Btl5p_7b.esm.js → getSignedSessionId-BYR70F5w.esm.js} +2 -2
- package/dist/{getSignedSessionId-Btl5p_7b.esm.js.map → getSignedSessionId-BYR70F5w.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-VX7LkxVJ.cjs → getSignedSessionId-BpUNqL9z.cjs} +2 -2
- package/dist/{getSignedSessionId-VX7LkxVJ.cjs.map → getSignedSessionId-BpUNqL9z.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-5sZK6kAJ.esm.js → getWalletProviderByKey-BVVFLnfy.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-5sZK6kAJ.esm.js.map → getWalletProviderByKey-BVVFLnfy.esm.js.map} +1 -1
- package/dist/getWalletProviderByKey-CqdhcE7y.native.esm.js +279 -0
- package/dist/getWalletProviderByKey-CqdhcE7y.native.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey--K4N2u-M.cjs → getWalletProviderByKey-D2ElEmJR.cjs} +2 -2
- package/dist/{getWalletProviderByKey--K4N2u-M.cjs.map → getWalletProviderByKey-D2ElEmJR.cjs.map} +1 -1
- package/dist/index.cjs +17 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +16 -66
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +16 -66
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-MtEVK3ov.cjs → isDynamicWaasEnabled-B7_FiTkx.cjs} +2 -2
- package/dist/{isDynamicWaasEnabled-MtEVK3ov.cjs.map → isDynamicWaasEnabled-B7_FiTkx.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-sI3vpWvA.esm.js → isDynamicWaasEnabled-Ck0VFh7Z.esm.js} +2 -2
- package/dist/{isDynamicWaasEnabled-sI3vpWvA.esm.js.map → isDynamicWaasEnabled-Ck0VFh7Z.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-BR_pG4jM.native.esm.js → isDynamicWaasEnabled-yo_LqzH5.native.esm.js} +2 -2
- package/dist/{isDynamicWaasEnabled-BR_pG4jM.native.esm.js.map → isDynamicWaasEnabled-yo_LqzH5.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BiPVqg49.cjs → isMfaRequiredForAction-B3FO4Zbn.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-BiPVqg49.cjs.map → isMfaRequiredForAction-B3FO4Zbn.cjs.map} +1 -1
- package/dist/{isMfaRequiredForAction-DJ2UX11y.esm.js → isMfaRequiredForAction-CnO4g-V0.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-DJ2UX11y.esm.js.map → isMfaRequiredForAction-CnO4g-V0.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-GWZny7T2.native.esm.js → isMfaRequiredForAction-Zi7_K00W.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-GWZny7T2.native.esm.js.map → isMfaRequiredForAction-Zi7_K00W.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-OvzVH1rg.esm.js → isUserOnboardingComplete-DZk1nVHO.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-OvzVH1rg.esm.js.map → isUserOnboardingComplete-DZk1nVHO.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-Hzz6fwTk.native.esm.js → isUserOnboardingComplete-DcRl6Q1f.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-Hzz6fwTk.native.esm.js.map → isUserOnboardingComplete-DcRl6Q1f.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-D1hw1c5_.cjs → isUserOnboardingComplete-Dnx30meW.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-D1hw1c5_.cjs.map → isUserOnboardingComplete-Dnx30meW.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-BiLoNIkA.native.esm.js → migrateFromFireblocks-COEK_Acn.native.esm.js} +13 -13
- package/dist/migrateFromFireblocks-COEK_Acn.native.esm.js.map +1 -0
- package/dist/{migrateFromFireblocks-NRfLh1JL.cjs → migrateFromFireblocks-CdSxWZav.cjs} +13 -13
- package/dist/migrateFromFireblocks-CdSxWZav.cjs.map +1 -0
- package/dist/{migrateFromFireblocks-Y5pPtmew.esm.js → migrateFromFireblocks-nkmSeZrn.esm.js} +14 -14
- package/dist/migrateFromFireblocks-nkmSeZrn.esm.js.map +1 -0
- package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts +29 -0
- package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts.map +1 -0
- package/dist/modules/auth/getActionAuthorizationTokens/index.d.ts +2 -0
- package/dist/modules/auth/getActionAuthorizationTokens/index.d.ts.map +1 -0
- package/dist/modules/auth/logoutReason.d.ts +1 -1
- package/dist/modules/auth/logoutReason.d.ts.map +1 -1
- package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.d.ts +2 -2
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +13 -12
- package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +4 -4
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +7 -2
- package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/assertTargetIdentity.d.ts +14 -0
- package/dist/modules/waas/businessAccounts/assertTargetIdentity.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/businessAccounts.constants.d.ts +5 -0
- package/dist/modules/waas/businessAccounts/businessAccounts.constants.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +15 -1
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/updateBusinessAccount/index.d.ts +2 -0
- package/dist/modules/waas/businessAccounts/updateBusinessAccount/index.d.ts.map +1 -0
- package/dist/modules/waas/businessAccounts/updateBusinessAccount/updateBusinessAccount.d.ts +26 -0
- package/dist/modules/waas/businessAccounts/updateBusinessAccount/updateBusinessAccount.d.ts.map +1 -0
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/waas.types.d.ts +2 -2
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{updateAuthFromVerifyResponse-ChnvPY0m.cjs → updateAuthFromVerifyResponse-BSORoVT0.cjs} +3 -3
- package/dist/{updateAuthFromVerifyResponse-ChnvPY0m.cjs.map → updateAuthFromVerifyResponse-BSORoVT0.cjs.map} +1 -1
- package/dist/{updateAuthFromVerifyResponse-Ct1Y6O_T.esm.js → updateAuthFromVerifyResponse-D0Tt9-Z-.esm.js} +3 -3
- package/dist/{updateAuthFromVerifyResponse-Ct1Y6O_T.esm.js.map → updateAuthFromVerifyResponse-D0Tt9-Z-.esm.js.map} +1 -1
- package/dist/waas.cjs +123 -41
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +124 -43
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +123 -42
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +53 -15
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +53 -15
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +52 -14
- package/dist/waasCore.native.esm.js.map +1 -1
- package/ios/DynamicClientScreenshotProtection.mm +11 -0
- package/package.json +3 -3
- package/dist/getNetworkProviderFromNetworkId-DPFHY3b8.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DTNPpR5H.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-YcalZlDG.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-BhcBoGMW.native.esm.js +0 -20
- package/dist/getWalletProviderByKey-BhcBoGMW.native.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-BiLoNIkA.native.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-NRfLh1JL.cjs.map +0 -1
- package/dist/migrateFromFireblocks-Y5pPtmew.esm.js.map +0 -1
package/dist/index.native.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as UnauthorizedError, B as onEvent, Ct as name, E as getWalletProviderRegistry, F as normalizeAddress, H as createApiClient, I as splitWalletProviderKey, K as getNonce, M as getChainFromVerifiedCredentialChain, N as CHAINS_INFO_MAP, O as NoWalletProviderFoundError, P as formatWalletAccountId, Q as createLocalStorageAdapter, R as emitEvent, S as extractSessionId, St as getCore, T as WalletProviderPriority, V as onceEvent, X as updateNoncePoolStorage, Y as fetchAndStoreNonces, Z as createStorageKeySchema, _ as instrumentFunction, _t as NONCE_POOL_SIZE, a as InvalidParamError, at as APIError, b as getUserAgent, ct as DYNAMIC_ICONIC_SPRITE_URL, dt as isCookieEnabled, et as SandboxMaximumThresholdReachedError, ft as assertDefined, gt as getPlatform, h as checkAndRaiseWalletAccountsChangedEvent, ht as randomString, i as parseElevatedAccessToken, it as InvalidExternalAuthError, k as getWalletAccounts, lt as SDK_API_CORE_VERSION, m as isUserMissingMfaAuth, mt as getElevatedAccessToken, n as updateAuthFromVerifyResponse, nt as MfaInvalidOtpError, o as initializeWaasClientsForEagerRecovery, p as getWalletProviders, pt as ValueMustBeDefinedError, r as upsertElevatedAccessToken, rt as LinkCredentialError, tt as MfaRateLimitedError, v as scrubParameters, vt as getDefaultClient, w as getWalletProviderFromWalletAccount, wt as version, x as getOperatingSystem, xt as BaseError, y as DEFAULT_PII_FIELDS, yt as setDefaultClient, z as offEvent } from "./NativeModuleNotLinkedError-
|
|
2
|
-
import { B as
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
1
|
+
import { $ as UnauthorizedError, B as onEvent, Ct as name, E as getWalletProviderRegistry, F as normalizeAddress, H as createApiClient, I as splitWalletProviderKey, K as getNonce, M as getChainFromVerifiedCredentialChain, N as CHAINS_INFO_MAP, O as NoWalletProviderFoundError, P as formatWalletAccountId, Q as createLocalStorageAdapter, R as emitEvent, S as extractSessionId, St as getCore, T as WalletProviderPriority, V as onceEvent, X as updateNoncePoolStorage, Y as fetchAndStoreNonces, Z as createStorageKeySchema, _ as instrumentFunction, _t as NONCE_POOL_SIZE, a as InvalidParamError, at as APIError, b as getUserAgent, ct as DYNAMIC_ICONIC_SPRITE_URL, dt as isCookieEnabled, et as SandboxMaximumThresholdReachedError, ft as assertDefined, gt as getPlatform, h as checkAndRaiseWalletAccountsChangedEvent, ht as randomString, i as parseElevatedAccessToken, it as InvalidExternalAuthError, k as getWalletAccounts, lt as SDK_API_CORE_VERSION, m as isUserMissingMfaAuth, mt as getElevatedAccessToken, n as updateAuthFromVerifyResponse, nt as MfaInvalidOtpError, o as initializeWaasClientsForEagerRecovery, p as getWalletProviders, pt as ValueMustBeDefinedError, r as upsertElevatedAccessToken, rt as LinkCredentialError, tt as MfaRateLimitedError, v as scrubParameters, vt as getDefaultClient, w as getWalletProviderFromWalletAccount, wt as version, x as getOperatingSystem, xt as BaseError, y as DEFAULT_PII_FIELDS, yt as setDefaultClient, z as offEvent } from "./NativeModuleNotLinkedError-CJy_4-6r.native.esm.js";
|
|
2
|
+
import { A as createCrossTabBroadcast, B as getBuffer, C as getKeychainIndexedDBName, D as assertSafeNavigationUrl, E as createKeychainService, F as GENERATE_SESSION_KEYS_TRACKER_KEY, H as isEqualShallow, I as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, L as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, M as CannotTrackError, N as createDeferredPromise, P as FETCH_PROJECT_SETTINGS_TRACKER_KEY, R as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, S as MergeAccountsConfirmationError, T as assertSafeDeeplinkUrl, U as createStorage, V as subscribeWithSelector, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, k as createLogger, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as isServerSideRendering } from "./getNetworkProviderFromNetworkId-R8IKGc6s.native.esm.js";
|
|
3
|
+
import { a as fetchProjectSettings, i as generateSessionKeys, n as getVerifiedCredentialForWalletAccount, o as isSignedIn, r as __logoutWithReason_wrapped, s as retryOnFail, t as getWalletProviderByKey } from "./getWalletProviderByKey-CqdhcE7y.native.esm.js";
|
|
4
|
+
import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-yo_LqzH5.native.esm.js";
|
|
5
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasLoadFailedError, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-DcRl6Q1f.native.esm.js";
|
|
6
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-Zi7_K00W.native.esm.js";
|
|
7
7
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
8
8
|
import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, ProviderEnum as ProviderEnum$1, TokenScope, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
9
9
|
import * as z from "zod/mini";
|
|
@@ -776,62 +776,6 @@ const createNavigationHandler = () => {
|
|
|
776
776
|
};
|
|
777
777
|
};
|
|
778
778
|
|
|
779
|
-
//#endregion
|
|
780
|
-
//#region src/errors/UnsafeDeeplinkUrlError.ts
|
|
781
|
-
/**
|
|
782
|
-
* Thrown when a deeplink is opened with a URL whose scheme can execute script
|
|
783
|
-
* in the current origin (`javascript:`, `data:`, `vbscript:`). Unlike
|
|
784
|
-
* navigation, deeplinks legitimately use custom app schemes (e.g. `phantom:`,
|
|
785
|
-
* `metamask:`), so this guards via a denylist of dangerous schemes rather than
|
|
786
|
-
* an `http(s)` allowlist, preventing DOM XSS through the `window.location.assign`
|
|
787
|
-
* sink while leaving valid wallet deeplinks untouched.
|
|
788
|
-
*/
|
|
789
|
-
var UnsafeDeeplinkUrlError = class extends BaseError {
|
|
790
|
-
constructor({ scheme }) {
|
|
791
|
-
super({
|
|
792
|
-
cause: null,
|
|
793
|
-
code: "unsafe_deeplink_url_error",
|
|
794
|
-
docsUrl: null,
|
|
795
|
-
name: "UnsafeDeeplinkUrlError",
|
|
796
|
-
shortMessage: `Refusing to open a deeplink with an unsafe scheme "${scheme}". Script-executing schemes (javascript:, data:, vbscript:) are not allowed. This may indicate a compromised or misconfigured deeplink URL.`
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
//#endregion
|
|
802
|
-
//#region src/utils/assertSafeDeeplinkUrl/assertSafeDeeplinkUrl.ts
|
|
803
|
-
/**
|
|
804
|
-
* Schemes that can execute script in the current origin and must never reach a
|
|
805
|
-
* deeplink navigation sink. Deeplinks legitimately use arbitrary custom app
|
|
806
|
-
* schemes (e.g. `phantom:`, `metamask:`), so a denylist of dangerous schemes is
|
|
807
|
-
* used here instead of the `http(s)` allowlist applied to standard navigation.
|
|
808
|
-
*/
|
|
809
|
-
const DANGEROUS_DEEPLINK_SCHEMES = new Set([
|
|
810
|
-
"javascript:",
|
|
811
|
-
"data:",
|
|
812
|
-
"vbscript:",
|
|
813
|
-
"blob:"
|
|
814
|
-
]);
|
|
815
|
-
/**
|
|
816
|
-
* Asserts that the given deeplink URL is safe to open, i.e. its scheme is not
|
|
817
|
-
* one that can execute script (`javascript:`, `data:`, `vbscript:`, `blob:`). Used as a
|
|
818
|
-
* defense-in-depth guard on the `window.location.assign` deeplink sink to
|
|
819
|
-
* prevent DOM XSS, while still permitting custom wallet app schemes.
|
|
820
|
-
*
|
|
821
|
-
* @param url - The deeplink URL string to validate.
|
|
822
|
-
* @throws {UnsafeDeeplinkUrlError} If the URL cannot be parsed or its scheme can execute script.
|
|
823
|
-
* @notInstrumented
|
|
824
|
-
*/
|
|
825
|
-
const assertSafeDeeplinkUrl = (url) => {
|
|
826
|
-
let parsed;
|
|
827
|
-
try {
|
|
828
|
-
parsed = new URL(url);
|
|
829
|
-
} catch {
|
|
830
|
-
throw new UnsafeDeeplinkUrlError({ scheme: "unknown" });
|
|
831
|
-
}
|
|
832
|
-
if (DANGEROUS_DEEPLINK_SCHEMES.has(parsed.protocol)) throw new UnsafeDeeplinkUrlError({ scheme: parsed.protocol });
|
|
833
|
-
};
|
|
834
|
-
|
|
835
779
|
//#endregion
|
|
836
780
|
//#region src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.ts
|
|
837
781
|
/**
|
|
@@ -3933,8 +3877,8 @@ const prepareFlowSigning = async ({ assertBalanceForGasCost, assertBalanceForTra
|
|
|
3933
3877
|
environmentId,
|
|
3934
3878
|
flowId,
|
|
3935
3879
|
flowPrepareSigningRequest: {
|
|
3936
|
-
assertBalanceForGasCost: assertBalanceForGasCost ??
|
|
3937
|
-
assertBalanceForTransferAmount: assertBalanceForTransferAmount ??
|
|
3880
|
+
assertBalanceForGasCost: assertBalanceForGasCost ?? true,
|
|
3881
|
+
assertBalanceForTransferAmount: assertBalanceForTransferAmount ?? true
|
|
3938
3882
|
},
|
|
3939
3883
|
xDynamicFlowSessionToken: sessionToken
|
|
3940
3884
|
}),
|
|
@@ -8191,7 +8135,13 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
|
8191
8135
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
8192
8136
|
/** @notInstrumented */
|
|
8193
8137
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
8194
|
-
|
|
8138
|
+
/**
|
|
8139
|
+
* A wallet that is already verified can still be used for step-up
|
|
8140
|
+
* authentication: the user proves ownership again to mint an elevated
|
|
8141
|
+
* access token for the requested scope. Skip the already-verified guard
|
|
8142
|
+
* when scopes are provided so the call reaches walletsVerify.
|
|
8143
|
+
*/
|
|
8144
|
+
if (walletAccount.verifiedCredentialId && !requestedScopes) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
8195
8145
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
8196
8146
|
const { messageToSign, signature } = await __proveWalletAccountOwnership_wrapped({ walletAccount }, client);
|
|
8197
8147
|
const formattedSignature = walletAccount.hardwareWalletVendor ? formatSignatureForHardwareWallet({
|
|
@@ -8260,7 +8210,7 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
|
|
|
8260
8210
|
* @param [params.requestedScopes] - Optional token scopes to request during verification.
|
|
8261
8211
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8262
8212
|
* @returns A promise that resolves to the verified wallet account.
|
|
8263
|
-
* @throws WalletAccountAlreadyVerifiedError If the wallet is already verified.
|
|
8213
|
+
* @throws WalletAccountAlreadyVerifiedError If the wallet is already verified and no requestedScopes are provided.
|
|
8264
8214
|
* @throws WalletAlreadyLinkedToAnotherUserError If the wallet is linked to another user.
|
|
8265
8215
|
* @see connectWithWalletProvider
|
|
8266
8216
|
* @see connectAndVerifyWithWalletProvider
|