@bounded-sh/client 0.0.61 → 0.0.62
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/auth/bounded-login-widget.d.ts +1 -1
- package/dist/auth/index.d.ts +4 -5
- package/dist/{email-auth-provider-9BwSziWj.js → email-auth-provider-BxV1zZA_.js} +2 -2
- package/dist/{email-auth-provider-9BwSziWj.js.map → email-auth-provider-BxV1zZA_.js.map} +1 -1
- package/dist/{email-auth-provider-B3XaJw-G.mjs → email-auth-provider-vWv0rnbd.mjs} +2 -2
- package/dist/{email-auth-provider-B3XaJw-G.mjs.map → email-auth-provider-vWv0rnbd.mjs.map} +1 -1
- package/dist/{guest-auth-provider-BBSFawAr.mjs → guest-auth-provider-CeIZw5x6.mjs} +2 -2
- package/dist/{guest-auth-provider-BBSFawAr.mjs.map → guest-auth-provider-CeIZw5x6.mjs.map} +1 -1
- package/dist/{guest-auth-provider-Di0TRg-z.js → guest-auth-provider-peD5Zasl.js} +2 -2
- package/dist/{guest-auth-provider-Di0TRg-z.js.map → guest-auth-provider-peD5Zasl.js.map} +1 -1
- package/dist/{index-C_L497w1.js → index-DEDYfO2p.js} +12 -13
- package/dist/index-DEDYfO2p.js.map +1 -0
- package/dist/{index-L2R6C5Vl.mjs → index-DpJl_Cpa.mjs} +12 -13
- package/dist/index-DpJl_Cpa.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.native-BIUs8t7F.mjs.map +1 -1
- package/dist/index.native-BSheiGj2.js.map +1 -1
- package/dist/{injected-evm-wallet-provider-DgWUaVtt.js → injected-evm-wallet-provider-B-9VXQcH.js} +2 -2
- package/dist/{injected-evm-wallet-provider-DgWUaVtt.js.map → injected-evm-wallet-provider-B-9VXQcH.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DSFDC8fh.mjs → injected-evm-wallet-provider-BVsxOzYr.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-DSFDC8fh.mjs.map → injected-evm-wallet-provider-BVsxOzYr.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-DfJvN3sV.mjs → injected-wallet-provider-Bqk33sir.mjs} +2 -2
- package/dist/{injected-wallet-provider-DfJvN3sV.mjs.map → injected-wallet-provider-Bqk33sir.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-oCRGuls5.js → injected-wallet-provider-D574oPzH.js} +2 -2
- package/dist/{injected-wallet-provider-oCRGuls5.js.map → injected-wallet-provider-D574oPzH.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-C_L497w1.js.map +0 -1
- package/dist/index-L2R6C5Vl.mjs.map +0 -1
|
@@ -4477,14 +4477,13 @@ function getInitConfig() {
|
|
|
4477
4477
|
return initConfig;
|
|
4478
4478
|
}
|
|
4479
4479
|
/**
|
|
4480
|
-
* Which LOGIN mode the app runs (default "
|
|
4481
|
-
*
|
|
4482
|
-
*
|
|
4483
|
-
*
|
|
4484
|
-
* option can override it per call. Anything other than "turnkey" is "bounded".
|
|
4480
|
+
* Which LOGIN mode the app runs (default "turnkey"). Turnkey-native email OTP keeps
|
|
4481
|
+
* code entry inline in the unified widget (no OIDC popup), and Bounded mints the
|
|
4482
|
+
* session from Turnkey's verification. Apps can explicitly select "bounded" for the
|
|
4483
|
+
* legacy Better Auth email flow. A per-call openBoundedWidget option can override it.
|
|
4485
4484
|
*/
|
|
4486
4485
|
function resolveAuthMode(config) {
|
|
4487
|
-
return config.authMode === '
|
|
4486
|
+
return config.authMode === 'bounded' ? 'bounded' : 'turnkey';
|
|
4488
4487
|
}
|
|
4489
4488
|
/**
|
|
4490
4489
|
* Resolve the injected-wallet-config the provider should use, merging the
|
|
@@ -4545,7 +4544,7 @@ async function getAuthProvider(config) {
|
|
|
4545
4544
|
// manager as legacy email sessions. Human login should be started
|
|
4546
4545
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
4547
4546
|
// logout surface for those sessions.
|
|
4548
|
-
currentAuthProvider = new (await import('./email-auth-provider-
|
|
4547
|
+
currentAuthProvider = new (await import('./email-auth-provider-vWv0rnbd.mjs')).EmailAuthProvider();
|
|
4549
4548
|
break;
|
|
4550
4549
|
case "wallet":
|
|
4551
4550
|
case "phantom": {
|
|
@@ -4564,7 +4563,7 @@ async function getAuthProvider(config) {
|
|
|
4564
4563
|
if (!isWalletLoginEnabled(config)) {
|
|
4565
4564
|
throw walletLoginNotEnabledError(authMethod);
|
|
4566
4565
|
}
|
|
4567
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
4566
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-Bqk33sir.mjs');
|
|
4568
4567
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
4569
4568
|
break;
|
|
4570
4569
|
}
|
|
@@ -4577,7 +4576,7 @@ async function getAuthProvider(config) {
|
|
|
4577
4576
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
4578
4577
|
// to point at a specific wallet or set chainId/domain.
|
|
4579
4578
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
4580
|
-
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-
|
|
4579
|
+
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-BVsxOzYr.mjs');
|
|
4581
4580
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
4582
4581
|
break;
|
|
4583
4582
|
}
|
|
@@ -4605,7 +4604,7 @@ async function getAuthProvider(config) {
|
|
|
4605
4604
|
break;
|
|
4606
4605
|
case "guest":
|
|
4607
4606
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
4608
|
-
currentAuthProvider = new (await import('./guest-auth-provider-
|
|
4607
|
+
currentAuthProvider = new (await import('./guest-auth-provider-CeIZw5x6.mjs')).GuestAuthProvider();
|
|
4609
4608
|
break;
|
|
4610
4609
|
}
|
|
4611
4610
|
if (!currentAuthProvider) {
|
|
@@ -4661,7 +4660,7 @@ async function signInAnonymously() {
|
|
|
4661
4660
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
4662
4661
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
4663
4662
|
// so bundle-splitting can see it.
|
|
4664
|
-
const provider = new (await import('./guest-auth-provider-
|
|
4663
|
+
const provider = new (await import('./guest-auth-provider-CeIZw5x6.mjs')).GuestAuthProvider();
|
|
4665
4664
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
4666
4665
|
const commit = (user) => {
|
|
4667
4666
|
// No await/interleaving inside this block: provider/method/config/marker
|
|
@@ -4812,7 +4811,7 @@ async function loginWithWallet(options) {
|
|
|
4812
4811
|
? Object.assign(Object.assign({}, base), { getProvider: options.getProvider }) : base;
|
|
4813
4812
|
const rpcUrl = normalizeSolanaRpcUrl(cfg.rpcUrl);
|
|
4814
4813
|
const network = getConfiguredSolanaNetwork(cfg);
|
|
4815
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
4814
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-Bqk33sir.mjs');
|
|
4816
4815
|
let provider = new InjectedWalletProvider(injectedConfig, rpcUrl, network);
|
|
4817
4816
|
if (coreConfig.chain === 'offchain')
|
|
4818
4817
|
provider = new OffchainAuthProvider(provider);
|
|
@@ -8064,4 +8063,4 @@ function defaultInjectedEvmProvider() {
|
|
|
8064
8063
|
}
|
|
8065
8064
|
|
|
8066
8065
|
export { FAILURE_REASONS as $, completeLoginFromRedirect as A, loginWithPopup as B, completeLoginInPopup as C, openBoundedWidget as D, EMBEDDED_WALLET_UNSUPPORTED as E, useAuth as F, useQuery as G, useBuildRun as H, apps as I, deserializeTransaction as J, signSolanaMessageViaTurnkey as K, getOrCreateTurnkeyWallet as L, startTurnkeyEmailLogin as M, getIdToken as N, onramp as O, onrampQuote as P, onrampStatus as Q, setPlatform as R, OffchainAuthProvider as S, PrivyExpoProvider as T, requestEip6963Providers as U, builds as V, BuildsApiError as W, NON_TERMINAL_STATES as X, TERMINAL_STATES as Y, RUN_STATES as Z, PARK_REASONS as _, hasEmbeddedEvmWallet as a, BUILD_REVIEW_CAPABILITY_SCHEMA as a0, BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA as a1, BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA as a2, embeddedSignAndSubmit as b, setAuthLoading as c, defaultInjectedProvider as d, embeddedRunEvmTransaction as e, bufferExports as f, getPlatform as g, hasEmbeddedWallet as h, bs58 as i, confirmAndCheckTransaction as j, defaultInjectedEvmProvider as k, init as l, getCurrentUser as m, normalizeSolanaRpcUrl as n, onAuthStateChanged as o, onAuthLoadingChanged as p, getAuthLoading as q, resolveSolanaRpcUrl as r, setCurrentUser as s, login as t, logout as u, getAuthProvider as v, signInAnonymously as w, loginWithPrivy as x, loginWithWallet as y, loginWithRedirect as z };
|
|
8067
|
-
//# sourceMappingURL=index-
|
|
8066
|
+
//# sourceMappingURL=index-DpJl_Cpa.mjs.map
|