@b3dotfun/sdk 0.1.70-alpha.1 → 0.1.70

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 (116) hide show
  1. package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
  2. package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -2
  3. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
  4. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +2 -2
  5. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.d.ts +2 -0
  6. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +21 -14
  7. package/dist/cjs/anyspend/react/components/AnySpendDeposit.js +9 -3
  8. package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
  9. package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.js +2 -2
  10. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
  11. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
  12. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
  13. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
  14. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
  15. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
  16. package/dist/cjs/anyspend/react/components/AnySpendWorkflowTrigger.d.ts +3 -1
  17. package/dist/cjs/anyspend/react/components/AnySpendWorkflowTrigger.js +2 -2
  18. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
  19. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +2 -2
  20. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
  21. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +2 -2
  22. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  23. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.js +2 -2
  24. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  25. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckoutTrigger.js +2 -2
  26. package/dist/cjs/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +3 -1
  27. package/dist/cjs/anyspend/react/components/checkout/CheckoutPaymentPanel.js +13 -3
  28. package/dist/cjs/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +1 -5
  29. package/dist/cjs/global-account/react/components/B3Provider/B3ConfigProvider.js +1 -2
  30. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +1 -17
  31. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +2 -3
  32. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthProvider.js +5 -6
  33. package/dist/cjs/global-account/react/components/index.d.ts +0 -1
  34. package/dist/cjs/global-account/react/components/index.js +3 -5
  35. package/dist/cjs/global-account/react/hooks/useBetterAuth.js +13 -14
  36. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +28 -0
  37. package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
  38. package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -2
  39. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
  40. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +2 -2
  41. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.d.ts +2 -0
  42. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +21 -14
  43. package/dist/esm/anyspend/react/components/AnySpendDeposit.js +10 -4
  44. package/dist/esm/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
  45. package/dist/esm/anyspend/react/components/AnySpendDepositUpside.js +2 -2
  46. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
  47. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +2 -2
  48. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
  49. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
  50. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
  51. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
  52. package/dist/esm/anyspend/react/components/AnySpendWorkflowTrigger.d.ts +3 -1
  53. package/dist/esm/anyspend/react/components/AnySpendWorkflowTrigger.js +2 -2
  54. package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
  55. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +2 -2
  56. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
  57. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +2 -2
  58. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  59. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.js +2 -2
  60. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  61. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckoutTrigger.js +2 -2
  62. package/dist/esm/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +3 -1
  63. package/dist/esm/anyspend/react/components/checkout/CheckoutPaymentPanel.js +14 -4
  64. package/dist/esm/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +1 -5
  65. package/dist/esm/global-account/react/components/B3Provider/B3ConfigProvider.js +1 -2
  66. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +1 -17
  67. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +2 -3
  68. package/dist/esm/global-account/react/components/B3Provider/BetterAuthProvider.js +3 -4
  69. package/dist/esm/global-account/react/components/index.d.ts +0 -1
  70. package/dist/esm/global-account/react/components/index.js +0 -1
  71. package/dist/esm/global-account/react/hooks/useBetterAuth.js +6 -7
  72. package/dist/esm/global-account/react/stores/useModalStore.d.ts +28 -0
  73. package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
  74. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
  75. package/dist/types/anyspend/react/components/AnySpendCustomExactIn.d.ts +2 -0
  76. package/dist/types/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
  77. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
  78. package/dist/types/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
  79. package/dist/types/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
  80. package/dist/types/anyspend/react/components/AnySpendWorkflowTrigger.d.ts +3 -1
  81. package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
  82. package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
  83. package/dist/types/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  84. package/dist/types/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  85. package/dist/types/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +3 -1
  86. package/dist/types/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +1 -5
  87. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +1 -17
  88. package/dist/types/global-account/react/components/index.d.ts +0 -1
  89. package/dist/types/global-account/react/stores/useModalStore.d.ts +28 -0
  90. package/package.json +1 -1
  91. package/src/anyspend/react/components/AnySpendBondKit.tsx +2 -0
  92. package/src/anyspend/react/components/AnySpendBuySpin.tsx +3 -0
  93. package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +29 -14
  94. package/src/anyspend/react/components/AnySpendDeposit.tsx +13 -3
  95. package/src/anyspend/react/components/AnySpendDepositUpside.tsx +3 -0
  96. package/src/anyspend/react/components/AnySpendStakeB3.tsx +3 -0
  97. package/src/anyspend/react/components/AnySpendStakeB3ExactIn.tsx +3 -0
  98. package/src/anyspend/react/components/AnySpendStakeUpsideExactIn.tsx +3 -0
  99. package/src/anyspend/react/components/AnySpendWorkflowTrigger.tsx +4 -0
  100. package/src/anyspend/react/components/AnyspendDepositHype.tsx +3 -0
  101. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +3 -0
  102. package/src/anyspend/react/components/checkout/AnySpendCheckout.tsx +4 -0
  103. package/src/anyspend/react/components/checkout/AnySpendCheckoutTrigger.tsx +4 -0
  104. package/src/anyspend/react/components/checkout/CheckoutPaymentPanel.tsx +97 -79
  105. package/src/global-account/react/components/B3Provider/B3ConfigProvider.tsx +0 -6
  106. package/src/global-account/react/components/B3Provider/B3Provider.tsx +15 -36
  107. package/src/global-account/react/components/B3Provider/BetterAuthProvider.tsx +3 -4
  108. package/src/global-account/react/components/index.ts +0 -1
  109. package/src/global-account/react/hooks/useBetterAuth.ts +6 -7
  110. package/src/global-account/react/stores/useModalStore.ts +28 -0
  111. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthClientProvider.d.ts +0 -17
  112. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthClientProvider.js +0 -31
  113. package/dist/esm/global-account/react/components/B3Provider/BetterAuthClientProvider.d.ts +0 -17
  114. package/dist/esm/global-account/react/components/B3Provider/BetterAuthClientProvider.js +0 -27
  115. package/dist/types/global-account/react/components/B3Provider/BetterAuthClientProvider.d.ts +0 -17
  116. package/src/global-account/react/components/B3Provider/BetterAuthClientProvider.tsx +0 -40
@@ -10,7 +10,7 @@ const DEFAULT_PERMISSIONS = {
10
10
  endDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365), // 1 year from now
11
11
  };
12
12
  const B3ConfigContext = createContext(null);
13
- export function B3ConfigProvider({ children, accountOverride, environment = "development", defaultPermissions = DEFAULT_PERMISSIONS, automaticallySetFirstEoa = false, theme = "light", clientType = "rest", partnerId, stripePublishableKey, createClientReferenceId, authStrategy = "thirdweb", apiUrl, }) {
13
+ export function B3ConfigProvider({ children, accountOverride, environment = "development", defaultPermissions = DEFAULT_PERMISSIONS, automaticallySetFirstEoa = false, theme = "light", clientType = "rest", partnerId, stripePublishableKey, createClientReferenceId, authStrategy = "thirdweb", }) {
14
14
  return (_jsx(B3ConfigContext.Provider, { value: {
15
15
  accountOverride,
16
16
  environment,
@@ -22,7 +22,6 @@ export function B3ConfigProvider({ children, accountOverride, environment = "dev
22
22
  stripePublishableKey,
23
23
  createClientReferenceId,
24
24
  authStrategy,
25
- apiUrl,
26
25
  }, children: children }));
27
26
  }
28
27
  export function useB3Config() {
@@ -10,7 +10,7 @@ import { ClientType } from "../../../client-manager";
10
10
  /**
11
11
  * Main B3Provider component
12
12
  */
13
- export declare function B3Provider({ theme, children, accountOverride, environment, automaticallySetFirstEoa, defaultEoaProvider, simDuneApiKey, toaster: _toaster, clientType, rpcUrls, partnerId, stripePublishableKey, onConnect, onLogout, connectors, overrideDefaultConnectors, createClientReferenceId, defaultPermissions, disableBSMNTAuthentication, queryClient, authStrategy, apiUrl, }: {
13
+ export declare function B3Provider({ theme, children, accountOverride, environment, automaticallySetFirstEoa, defaultEoaProvider, simDuneApiKey, toaster: _toaster, clientType, rpcUrls, partnerId, stripePublishableKey, onConnect, onLogout, connectors, overrideDefaultConnectors, createClientReferenceId, defaultPermissions, disableBSMNTAuthentication, queryClient, authStrategy, }: {
14
14
  theme: "light" | "dark";
15
15
  children: React.ReactNode;
16
16
  accountOverride?: Account;
@@ -39,20 +39,4 @@ export declare function B3Provider({ theme, children, accountOverride, environme
39
39
  queryClient?: QueryClient;
40
40
  /** Auth strategy: "thirdweb" (default, ecosystem wallet) or "better-auth" (email/password via Better Auth) */
41
41
  authStrategy?: AuthStrategy;
42
- /**
43
- * Override the API base URL for Better Auth operations.
44
- *
45
- * When set, the Better Auth client (signIn, signUp, signOut, getSession) will
46
- * target this URL instead of the default `B3_API_URL` / `NEXT_PUBLIC_B3_API`.
47
- *
48
- * Useful for local development where the frontend runs on localhost:3003 and
49
- * the b3-api runs on localhost:3031 — keeps the entire OAuth flow local so
50
- * sessions, cookies, and token exchange all hit the same server.
51
- *
52
- * @example
53
- * ```tsx
54
- * <B3Provider apiUrl="http://localhost:3031" ... />
55
- * ```
56
- */
57
- apiUrl?: string;
58
42
  }): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,6 @@ import { StyleRoot } from "../StyleRoot.js";
10
10
  import { setToastContext, ToastProvider, useToastContext } from "../Toast/index.js";
11
11
  import AuthenticationProvider from "./AuthenticationProvider.js";
12
12
  import { B3ConfigProvider } from "./B3ConfigProvider.js";
13
- import { BetterAuthClientProvider } from "./BetterAuthClientProvider.js";
14
13
  import BetterAuthProvider from "./BetterAuthProvider.js";
15
14
  import { LocalSDKProvider } from "./LocalSDKProvider.js";
16
15
  /**
@@ -18,7 +17,7 @@ import { LocalSDKProvider } from "./LocalSDKProvider.js";
18
17
  */
19
18
  export function B3Provider({ theme = "light", children, accountOverride, environment, automaticallySetFirstEoa, defaultEoaProvider, simDuneApiKey,
20
19
  // deprecated since v0.0.87
21
- toaster: _toaster, clientType = "rest", rpcUrls, partnerId, stripePublishableKey, onConnect, onLogout, connectors, overrideDefaultConnectors = false, createClientReferenceId, defaultPermissions, disableBSMNTAuthentication = false, queryClient, authStrategy = "thirdweb", apiUrl, }) {
20
+ toaster: _toaster, clientType = "rest", rpcUrls, partnerId, stripePublishableKey, onConnect, onLogout, connectors, overrideDefaultConnectors = false, createClientReferenceId, defaultPermissions, disableBSMNTAuthentication = false, queryClient, authStrategy = "thirdweb", }) {
22
21
  // Initialize Google Analytics on mount
23
22
  useEffect(() => {
24
23
  loadGA4Script();
@@ -28,7 +27,7 @@ toaster: _toaster, clientType = "rest", rpcUrls, partnerId, stripePublishableKey
28
27
  setClientType(clientType);
29
28
  }, [clientType]);
30
29
  const wagmiConfig = useMemo(() => createWagmiConfig({ partnerId, rpcUrls, connectors, overrideDefaultConnectors }), [partnerId, rpcUrls, connectors, overrideDefaultConnectors]);
31
- return (_jsx(WalletProvider, { wagmiConfig: wagmiConfig, queryClient: queryClient, children: _jsx(TooltipProvider, { children: _jsx(ToastProvider, { children: _jsx(LocalSDKProvider, { onConnectCallback: onConnect, onLogoutCallback: onLogout, disableBSMNTAuthentication: disableBSMNTAuthentication, children: _jsx(B3ConfigProvider, { accountOverride: accountOverride, environment: environment, automaticallySetFirstEoa: !!automaticallySetFirstEoa, theme: theme, clientType: clientType, partnerId: partnerId, stripePublishableKey: stripePublishableKey, createClientReferenceId: createClientReferenceId, defaultPermissions: defaultPermissions, authStrategy: authStrategy, apiUrl: apiUrl, children: _jsxs(BetterAuthClientProvider, { apiUrl: apiUrl, children: [_jsx(ToastContextConnector, {}), _jsxs(RelayKitProviderWrapper, { simDuneApiKey: simDuneApiKey, children: [children, _jsx(StyleRoot, { id: "b3-root" })] }), authStrategy === "better-auth" ? (_jsx(BetterAuthProvider, { partnerId: partnerId })) : (_jsx(AuthenticationProvider, { partnerId: partnerId, automaticallySetFirstEoa: !!automaticallySetFirstEoa, defaultEoaProvider: defaultEoaProvider }))] }) }) }) }) }) }));
30
+ return (_jsx(WalletProvider, { wagmiConfig: wagmiConfig, queryClient: queryClient, children: _jsx(TooltipProvider, { children: _jsx(ToastProvider, { children: _jsx(LocalSDKProvider, { onConnectCallback: onConnect, onLogoutCallback: onLogout, disableBSMNTAuthentication: disableBSMNTAuthentication, children: _jsxs(B3ConfigProvider, { accountOverride: accountOverride, environment: environment, automaticallySetFirstEoa: !!automaticallySetFirstEoa, theme: theme, clientType: clientType, partnerId: partnerId, stripePublishableKey: stripePublishableKey, createClientReferenceId: createClientReferenceId, defaultPermissions: defaultPermissions, authStrategy: authStrategy, children: [_jsx(ToastContextConnector, {}), _jsxs(RelayKitProviderWrapper, { simDuneApiKey: simDuneApiKey, children: [children, _jsx(StyleRoot, { id: "b3-root" })] }), authStrategy === "better-auth" ? (_jsx(BetterAuthProvider, { partnerId: partnerId })) : (_jsx(AuthenticationProvider, { partnerId: partnerId, automaticallySetFirstEoa: !!automaticallySetFirstEoa, defaultEoaProvider: defaultEoaProvider }))] }) }) }) }) }));
32
31
  }
33
32
  /**
34
33
  * Component to connect the toast context to the global toast API
@@ -4,8 +4,8 @@ import { B3_AUTH_COOKIE_NAME } from "../../../../shared/constants/index.js";
4
4
  import { debugB3React } from "../../../../shared/utils/debug.js";
5
5
  import Cookies from "js-cookie";
6
6
  import { useEffect, useRef } from "react";
7
+ import { betterAuthClient } from "../../../better-auth-client.js";
7
8
  import { useUserQuery } from "../../hooks/useUserQuery.js";
8
- import { useBetterAuthClient } from "./BetterAuthClientProvider.js";
9
9
  const debug = debugB3React("BetterAuthProvider");
10
10
  /**
11
11
  * Parallel to AuthenticationProvider for Better Auth strategy.
@@ -20,7 +20,6 @@ const debug = debugB3React("BetterAuthProvider");
20
20
  * useAuth, SignIn component, etc.) automatically clears the Better Auth session.
21
21
  */
22
22
  const BetterAuthProvider = ({ partnerId }) => {
23
- const betterAuthClient = useBetterAuthClient();
24
23
  const setIsAuthenticated = useAuthStore(state => state.setIsAuthenticated);
25
24
  const setIsAuthenticating = useAuthStore(state => state.setIsAuthenticating);
26
25
  const setIsConnected = useAuthStore(state => state.setIsConnected);
@@ -52,7 +51,7 @@ const BetterAuthProvider = ({ partnerId }) => {
52
51
  app.logout = originalLogout;
53
52
  hasPatched.current = false;
54
53
  };
55
- }, [betterAuthClient]);
54
+ }, []);
56
55
  // Session restore on mount
57
56
  useEffect(() => {
58
57
  if (hasAttemptedRestore.current)
@@ -110,7 +109,7 @@ const BetterAuthProvider = ({ partnerId }) => {
110
109
  setIsAuthenticating(false);
111
110
  };
112
111
  restoreSession();
113
- }, [setIsAuthenticated, setIsAuthenticating, setIsConnected, setUser, partnerId, betterAuthClient]);
112
+ }, [setIsAuthenticated, setIsAuthenticating, setIsConnected, setUser, partnerId]);
114
113
  return null;
115
114
  };
116
115
  export default BetterAuthProvider;
@@ -5,7 +5,6 @@ export { RelayKitProviderWrapper } from "./B3Provider/RelayKitProviderWrapper";
5
5
  export { useB3 } from "./B3Provider/useB3";
6
6
  export { useB3Account } from "./B3Provider/useB3Account";
7
7
  export { useB3Config } from "./B3Provider/useB3Config";
8
- export { useBetterAuthClient } from "./B3Provider/BetterAuthClientProvider";
9
8
  export { StyleRoot } from "./StyleRoot";
10
9
  export { BetterAuthResetPassword, type BetterAuthResetPasswordProps } from "./SignInWithB3/BetterAuthResetPassword";
11
10
  export { BetterAuthSignIn, type BetterAuthSignInProps } from "./SignInWithB3/BetterAuthSignIn";
@@ -6,7 +6,6 @@ export { RelayKitProviderWrapper } from "./B3Provider/RelayKitProviderWrapper.js
6
6
  export { useB3 } from "./B3Provider/useB3.js";
7
7
  export { useB3Account } from "./B3Provider/useB3Account.js";
8
8
  export { useB3Config } from "./B3Provider/useB3Config.js";
9
- export { useBetterAuthClient } from "./B3Provider/BetterAuthClientProvider.js";
10
9
  export { StyleRoot } from "./StyleRoot.js";
11
10
  // SignInWithB3 Components
12
11
  export { BetterAuthResetPassword } from "./SignInWithB3/BetterAuthResetPassword.js";
@@ -2,7 +2,7 @@ import app from "../../../global-account/app.js";
2
2
  import { useAuthStore, useB3Config } from "../../../global-account/react/index.js";
3
3
  import { debugB3React } from "../../../shared/utils/debug.js";
4
4
  import { useCallback } from "react";
5
- import { useBetterAuthClient } from "../components/B3Provider/BetterAuthClientProvider.js";
5
+ import { betterAuthClient } from "../../better-auth-client.js";
6
6
  import { useUserQuery } from "./useUserQuery.js";
7
7
  const debug = debugB3React("useBetterAuth");
8
8
  /** Thrown when email verification is required before the user can sign in. */
@@ -22,7 +22,6 @@ export class EmailVerificationRequiredError extends Error {
22
22
  */
23
23
  export function useBetterAuth() {
24
24
  const { partnerId } = useB3Config();
25
- const betterAuthClient = useBetterAuthClient();
26
25
  const { setUser } = useUserQuery();
27
26
  const setIsAuthenticated = useAuthStore(state => state.setIsAuthenticated);
28
27
  const setIsAuthenticating = useAuthStore(state => state.setIsAuthenticating);
@@ -65,7 +64,7 @@ export function useBetterAuth() {
65
64
  debug("Sign in failed", error);
66
65
  throw error;
67
66
  }
68
- }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting, betterAuthClient]);
67
+ }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting]);
69
68
  const signUpWithEmail = useCallback(async (email, password, name, verifyCallbackURL) => {
70
69
  debug("Signing up with email", { email, name });
71
70
  setHasStartedConnecting(true);
@@ -93,7 +92,7 @@ export function useBetterAuth() {
93
92
  debug("Sign up failed", error);
94
93
  throw error;
95
94
  }
96
- }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting, betterAuthClient]);
95
+ }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting]);
97
96
  const signInWithSocial = useCallback(async (provider) => {
98
97
  debug("Signing in with social provider", { provider });
99
98
  setHasStartedConnecting(true);
@@ -114,7 +113,7 @@ export function useBetterAuth() {
114
113
  debug("Social sign in failed", error);
115
114
  throw error;
116
115
  }
117
- }, [setIsAuthenticating, setHasStartedConnecting, betterAuthClient]);
116
+ }, [setIsAuthenticating, setHasStartedConnecting]);
118
117
  const requestPasswordReset = useCallback(async (email, redirectTo) => {
119
118
  debug("Requesting password reset", { email });
120
119
  const result = await betterAuthClient.requestPasswordReset({
@@ -126,7 +125,7 @@ export function useBetterAuth() {
126
125
  }
127
126
  debug("Password reset email sent");
128
127
  return result;
129
- }, [betterAuthClient]);
128
+ }, []);
130
129
  const resetPassword = useCallback(async (newPassword, token) => {
131
130
  debug("Resetting password");
132
131
  const result = await betterAuthClient.resetPassword({
@@ -138,7 +137,7 @@ export function useBetterAuth() {
138
137
  }
139
138
  debug("Password reset successful");
140
139
  return result;
141
- }, [betterAuthClient]);
140
+ }, []);
142
141
  return {
143
142
  signInWithEmail,
144
143
  signUpWithEmail,
@@ -135,6 +135,8 @@ export interface AnySpendModalProps extends BaseModalProps {
135
135
  disableUrlParamManagement?: boolean;
136
136
  /** Staging environment support */
137
137
  isStaging?: boolean;
138
+ /** Whether to show the "Pay with Fiat" tab. Defaults to true. When false, the fiat tab is hidden and activeTab is forced to "crypto". */
139
+ showFiatOption?: boolean;
138
140
  }
139
141
  /**
140
142
  * Props for the AnySpend NFT modal
@@ -151,6 +153,8 @@ export interface AnySpendNftProps extends BaseModalProps {
151
153
  onSuccess?: (txHash?: string) => void;
152
154
  /** Client-provided reference ID for tracking orders */
153
155
  clientReferenceId?: string;
156
+ /** Whether to show fiat payment option. Defaults to true. */
157
+ showFiatOption?: boolean;
154
158
  }
155
159
  /**
156
160
  * Props for the AnySpend tournament modal
@@ -224,6 +228,8 @@ export interface AnySpendStakeB3Props extends BaseModalProps {
224
228
  stakeAmount?: string;
225
229
  /** Callback function called when the stake is successful */
226
230
  onSuccess?: () => void;
231
+ /** Whether to show fiat payment option. Defaults to true. */
232
+ showFiatOption?: boolean;
227
233
  }
228
234
  /**
229
235
  * Props for the AnySpend Stake B3 (Custom Exact In) modal
@@ -238,6 +244,8 @@ export interface AnySpendStakeB3ExactInProps extends BaseModalProps {
238
244
  stakeAmount?: string;
239
245
  /** Callback function called when the stake is successful */
240
246
  onSuccess?: () => void;
247
+ /** Whether to show fiat payment option. Defaults to true. */
248
+ showFiatOption?: boolean;
241
249
  }
242
250
  /**
243
251
  * Props for the AnySpend Stake Contract modal
@@ -258,6 +266,8 @@ export interface AnySpendStakeUpsideProps extends BaseModalProps {
258
266
  activeTab?: "crypto" | "fiat";
259
267
  /** Callback function called when the stake is successful */
260
268
  onSuccess?: () => void;
269
+ /** Whether to show fiat payment option. Defaults to true. */
270
+ showFiatOption?: boolean;
261
271
  }
262
272
  /**
263
273
  * Props for the AnySpend Stake Upside (Exact In) modal
@@ -274,6 +284,8 @@ export interface AnySpendStakeUpsideExactInProps extends BaseModalProps {
274
284
  token: components["schemas"]["Token"];
275
285
  /** Callback function called when the stake is successful */
276
286
  onSuccess?: () => void;
287
+ /** Whether to show fiat payment option. Defaults to true. */
288
+ showFiatOption?: boolean;
277
289
  }
278
290
  /**
279
291
  * Props for the AnySpend Deposit Upside (Exact In) modal
@@ -296,6 +308,8 @@ export interface AnySpendDepositUpsideProps extends BaseModalProps {
296
308
  destinationTokenAmount?: string;
297
309
  /** Callback function called when the deposit is successful */
298
310
  onSuccess?: () => void;
311
+ /** Whether to show fiat payment option. Defaults to true. */
312
+ showFiatOption?: boolean;
299
313
  }
300
314
  /**
301
315
  * Props for the AnySpend Buy Spin modal
@@ -314,6 +328,8 @@ export interface AnySpendBuySpinProps extends BaseModalProps {
314
328
  onSuccess?: (txHash?: string) => void;
315
329
  /** Prefill quantity of spins to purchase */
316
330
  prefillQuantity?: string;
331
+ /** Whether to show fiat payment option. Defaults to true. */
332
+ showFiatOption?: boolean;
317
333
  }
318
334
  /**
319
335
  * Props for the AnySpend Signature Mint modal
@@ -328,6 +344,8 @@ export interface AnySpendSignatureMintProps extends BaseModalProps {
328
344
  imageUrl?: string;
329
345
  /** Callback function called when minting is successful */
330
346
  onSuccess?: (txHash?: string) => void;
347
+ /** Whether to show fiat payment option. Defaults to true. */
348
+ showFiatOption?: boolean;
331
349
  }
332
350
  /**
333
351
  * Props for the AnySpend bondKit modal
@@ -352,6 +370,8 @@ export interface AnySpendBondKitProps extends BaseModalProps {
352
370
  b3Amount?: string;
353
371
  /** Callback function called when purchase is successful */
354
372
  onSuccess?: (txHash?: string) => void;
373
+ /** Whether to show fiat payment option. Defaults to true. */
374
+ showFiatOption?: boolean;
355
375
  }
356
376
  export interface LinkAccountModalProps extends BaseModalProps {
357
377
  type: "linkAccount";
@@ -398,6 +418,8 @@ export interface AnySpendDepositHypeProps extends BaseModalProps {
398
418
  customRecipientLabel?: string;
399
419
  /** Custom label for the return home button (overrides "Return to Home" / "Close") */
400
420
  returnHomeLabel?: string;
421
+ /** Whether to show fiat payment option. Defaults to true. */
422
+ showFiatOption?: boolean;
401
423
  }
402
424
  export interface AvatarEditorModalProps extends BaseModalProps {
403
425
  /** Modal type identifier */
@@ -483,6 +505,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
483
505
  isStaging?: boolean;
484
506
  /** Optional discount code to apply to the purchase */
485
507
  discountCode?: string;
508
+ /** Whether to show the "Pay with fiat" tab. Defaults to true. */
509
+ showFiatOption?: boolean;
486
510
  }
487
511
  /**
488
512
  * Props for the AnySpend Deposit modal
@@ -543,6 +567,8 @@ export interface AnySpendCheckoutTriggerModalProps extends BaseModalProps {
543
567
  returnUrl?: string;
544
568
  /** Label for the return button */
545
569
  returnLabel?: string;
570
+ /** Whether to show fiat payment options (card + coinbase). Defaults to true. */
571
+ showFiatOption?: boolean;
546
572
  }
547
573
  export interface AnySpendWorkflowTriggerModalProps extends BaseModalProps {
548
574
  /** Modal type identifier */
@@ -571,6 +597,8 @@ export interface AnySpendWorkflowTriggerModalProps extends BaseModalProps {
571
597
  actionLabel?: string;
572
598
  /** Custom class names */
573
599
  classes?: AnySpendAllClasses;
600
+ /** Whether to show fiat payment option. Defaults to true. */
601
+ showFiatOption?: boolean;
574
602
  }
575
603
  export interface AnySpendDepositModalProps extends BaseModalProps {
576
604
  /** Modal type identifier */
@@ -1,6 +1,6 @@
1
1
  import { AnySpendBondKitProps } from "@b3dotfun/sdk/global-account/react/stores/useModalStore";
2
2
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
3
- export declare function AnySpendBondKit({ mode, recipientAddress, contractAddress, minTokensOut, imageUrl, b3Amount: initialB3Amount, onSuccess, slots, content, theme, }: AnySpendBondKitProps & {
3
+ export declare function AnySpendBondKit({ mode, recipientAddress, contractAddress, minTokensOut, imageUrl, b3Amount: initialB3Amount, onSuccess, slots, content, theme, showFiatOption, }: AnySpendBondKitProps & {
4
4
  slots?: AnySpendSlots;
5
5
  content?: AnySpendContent;
6
6
  theme?: AnySpendTheme;
@@ -1,5 +1,5 @@
1
1
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
2
- export declare function AnySpendBuySpin({ loadOrder, mode, spinwheelContractAddress, chainId, recipientAddress, prefillQuantity, onSuccess, senderAddress, slots, content, theme, }: {
2
+ export declare function AnySpendBuySpin({ loadOrder, mode, spinwheelContractAddress, chainId, recipientAddress, prefillQuantity, onSuccess, senderAddress, slots, content, theme, showFiatOption, }: {
3
3
  loadOrder?: string;
4
4
  mode?: "modal" | "page";
5
5
  spinwheelContractAddress: string;
@@ -12,4 +12,5 @@ export declare function AnySpendBuySpin({ loadOrder, mode, spinwheelContractAddr
12
12
  slots?: AnySpendSlots;
13
13
  content?: AnySpendContent;
14
14
  theme?: AnySpendTheme;
15
+ showFiatOption?: boolean;
15
16
  }): import("react/jsx-runtime").JSX.Element;
@@ -55,6 +55,8 @@ export interface AnySpendCustomExactInProps {
55
55
  content?: AnySpendContent;
56
56
  /** Structured color/theme configuration */
57
57
  theme?: AnySpendTheme;
58
+ /** Whether to show fiat payment option. Defaults to true. When false, paymentType is forced to "crypto". */
59
+ showFiatOption?: boolean;
58
60
  }
59
61
  export declare function AnySpendCustomExactIn(props: AnySpendCustomExactInProps): import("react/jsx-runtime").JSX.Element;
60
62
  export {};
@@ -1,6 +1,6 @@
1
1
  import { components } from "@b3dotfun/sdk/anyspend/types/api";
2
2
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
3
- export declare function AnySpendDepositUpside({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, depositContractAddress, token, onSuccess, senderAddress, slots, content, theme, }: {
3
+ export declare function AnySpendDepositUpside({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, depositContractAddress, token, onSuccess, senderAddress, showFiatOption, slots, content, theme, }: {
4
4
  loadOrder?: string;
5
5
  mode?: "modal" | "page";
6
6
  recipientAddress: string;
@@ -11,6 +11,7 @@ export declare function AnySpendDepositUpside({ loadOrder, mode, recipientAddres
11
11
  onSuccess?: (amount: string) => void;
12
12
  /** Optional sender (payer) address — pre-fills token balances when the user address is known ahead of time */
13
13
  senderAddress?: string;
14
+ showFiatOption?: boolean;
14
15
  slots?: AnySpendSlots;
15
16
  content?: AnySpendContent;
16
17
  theme?: AnySpendTheme;
@@ -1,5 +1,5 @@
1
1
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
2
- export declare function AnySpendStakeB3({ loadOrder, mode, recipientAddress, stakeAmount, onSuccess, senderAddress, slots, content, theme, }: {
2
+ export declare function AnySpendStakeB3({ loadOrder, mode, recipientAddress, stakeAmount, onSuccess, senderAddress, slots, content, theme, showFiatOption, }: {
3
3
  loadOrder?: string;
4
4
  mode?: "modal" | "page";
5
5
  recipientAddress: string;
@@ -10,4 +10,5 @@ export declare function AnySpendStakeB3({ loadOrder, mode, recipientAddress, sta
10
10
  slots?: AnySpendSlots;
11
11
  content?: AnySpendContent;
12
12
  theme?: AnySpendTheme;
13
+ showFiatOption?: boolean;
13
14
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
2
- export declare function AnySpendStakeB3ExactIn({ loadOrder, mode, sourceTokenAddress, sourceTokenChainId, recipientAddress, stakeAmount, onSuccess, senderAddress, slots, content, theme, }: {
2
+ export declare function AnySpendStakeB3ExactIn({ loadOrder, mode, sourceTokenAddress, sourceTokenChainId, recipientAddress, stakeAmount, onSuccess, senderAddress, showFiatOption, slots, content, theme, }: {
3
3
  loadOrder?: string;
4
4
  mode?: "modal" | "page";
5
5
  sourceTokenAddress?: string;
@@ -9,6 +9,7 @@ export declare function AnySpendStakeB3ExactIn({ loadOrder, mode, sourceTokenAdd
9
9
  onSuccess?: (amount: string) => void;
10
10
  /** Optional sender (payer) address — pre-fills token balances when the user address is known ahead of time */
11
11
  senderAddress?: string;
12
+ showFiatOption?: boolean;
12
13
  slots?: AnySpendSlots;
13
14
  content?: AnySpendContent;
14
15
  theme?: AnySpendTheme;
@@ -1,6 +1,6 @@
1
1
  import { components } from "@b3dotfun/sdk/anyspend/types/api";
2
2
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
3
- export declare function AnySpendStakeUpsideExactIn({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, destinationTokenAmount, stakingContractAddress, token, onSuccess, senderAddress, slots, content, theme, }: {
3
+ export declare function AnySpendStakeUpsideExactIn({ loadOrder, mode, recipientAddress, sourceTokenAddress, sourceTokenChainId, destinationTokenAmount, stakingContractAddress, token, onSuccess, senderAddress, showFiatOption, slots, content, theme, }: {
4
4
  loadOrder?: string;
5
5
  mode?: "modal" | "page";
6
6
  recipientAddress: string;
@@ -12,6 +12,7 @@ export declare function AnySpendStakeUpsideExactIn({ loadOrder, mode, recipientA
12
12
  onSuccess?: (amount: string) => void;
13
13
  /** Optional sender (payer) address — pre-fills token balances when the user address is known ahead of time */
14
14
  senderAddress?: string;
15
+ showFiatOption?: boolean;
15
16
  slots?: AnySpendSlots;
16
17
  content?: AnySpendContent;
17
18
  theme?: AnySpendTheme;
@@ -27,5 +27,7 @@ export interface AnySpendWorkflowTriggerProps {
27
27
  actionLabel?: string;
28
28
  /** Custom class names */
29
29
  classes?: AnySpendAllClasses;
30
+ /** Whether to show fiat payment option. Defaults to true. */
31
+ showFiatOption?: boolean;
30
32
  }
31
- export declare function AnySpendWorkflowTrigger({ recipientAddress, chainId, tokenAddress, amount, workflowId, orgId, callbackMetadata, onSuccess, onClose, mode, actionLabel, classes, }: AnySpendWorkflowTriggerProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare function AnySpendWorkflowTrigger({ recipientAddress, chainId, tokenAddress, amount, workflowId, orgId, callbackMetadata, onSuccess, onClose, mode, actionLabel, classes, showFiatOption, }: AnySpendWorkflowTriggerProps): import("react/jsx-runtime").JSX.Element;
@@ -29,8 +29,9 @@ export interface AnySpendDepositHypeProps {
29
29
  customRecipientLabel?: string;
30
30
  /** Optional sender (payer) address — pre-fills token balances when the user address is known ahead of time */
31
31
  senderAddress?: string;
32
+ showFiatOption?: boolean;
32
33
  slots?: AnySpendSlots;
33
34
  content?: AnySpendContent;
34
35
  theme?: AnySpendTheme;
35
36
  }
36
- export declare function AnySpendDepositHype({ loadOrder, mode, recipientAddress, paymentType, sourceTokenAddress, sourceTokenChainId, onSuccess, onOpenCustomModal, mainFooter, onTokenSelect, customUsdInputValues, preferEoa, senderAddress, slots, content, theme, }: AnySpendDepositHypeProps): import("react/jsx-runtime").JSX.Element | null;
37
+ export declare function AnySpendDepositHype({ loadOrder, mode, recipientAddress, paymentType, sourceTokenAddress, sourceTokenChainId, onSuccess, onOpenCustomModal, mainFooter, onTokenSelect, customUsdInputValues, preferEoa, senderAddress, showFiatOption, slots, content, theme, }: AnySpendDepositHypeProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +1,12 @@
1
1
  import { GenerateSigMintResponse } from "../../types/signatureMint";
2
2
  import type { AnySpendContent, AnySpendSlots, AnySpendTheme } from "./types/customization";
3
- export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData, imageUrl, onSuccess, slots, content, theme, }: {
3
+ export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData, imageUrl, onSuccess, showFiatOption, slots, content, theme, }: {
4
4
  loadOrder?: string;
5
5
  mode?: "modal" | "page";
6
6
  signatureData: GenerateSigMintResponse;
7
7
  imageUrl?: string;
8
8
  onSuccess?: (txHash?: string) => void;
9
+ showFiatOption?: boolean;
9
10
  slots?: AnySpendSlots;
10
11
  content?: AnySpendContent;
11
12
  theme?: AnySpendTheme;
@@ -123,5 +123,7 @@ export interface AnySpendCheckoutProps {
123
123
  kycEnabled?: boolean;
124
124
  /** Extra metadata included under the 'callbackMetadata' key in the order's callbackMetadata (e.g. workflowId, orgId from checkout session) */
125
125
  callbackMetadata?: Record<string, unknown>;
126
+ /** Whether to show fiat payment options (card + coinbase). Defaults to true. */
127
+ showFiatOption?: boolean;
126
128
  }
127
- export declare function AnySpendCheckout({ mode, recipientAddress, destinationTokenAddress, destinationTokenChainId, items, totalAmount: totalAmountOverride, organizationName, organizationLogo, themeColor, buttonText, checkoutSessionId, onSuccess, onError, returnUrl, returnLabel, classes, footer, defaultPaymentMethod, senderAddress, slots, content, theme, showPoints, showOrderId, shipping: shippingProp, tax, discount: discountProp, summaryLines, formSchema, formComponent, onFormSubmit, shippingOptions, collectShippingAddress, onShippingChange: onShippingChangeProp, enableDiscountCode, onDiscountApplied: onDiscountAppliedProp, validateDiscount, variablePricing, feeOnTop, kycEnabled, callbackMetadata: callbackMetadataProp, }: AnySpendCheckoutProps): import("react/jsx-runtime").JSX.Element;
129
+ export declare function AnySpendCheckout({ mode, recipientAddress, destinationTokenAddress, destinationTokenChainId, items, totalAmount: totalAmountOverride, organizationName, organizationLogo, themeColor, buttonText, checkoutSessionId, onSuccess, onError, returnUrl, returnLabel, classes, footer, defaultPaymentMethod, senderAddress, slots, content, theme, showPoints, showOrderId, shipping: shippingProp, tax, discount: discountProp, summaryLines, formSchema, formComponent, onFormSubmit, shippingOptions, collectShippingAddress, onShippingChange: onShippingChangeProp, enableDiscountCode, onDiscountApplied: onDiscountAppliedProp, validateDiscount, variablePricing, feeOnTop, kycEnabled, callbackMetadata: callbackMetadataProp, showFiatOption, }: AnySpendCheckoutProps): import("react/jsx-runtime").JSX.Element;
@@ -79,5 +79,7 @@ export interface AnySpendCheckoutTriggerProps {
79
79
  summaryLines?: CheckoutSummaryLine[];
80
80
  /** When true, identity verification (KYC) is required before card payment. Defaults to false. */
81
81
  kycEnabled?: boolean;
82
+ /** Whether to show fiat payment options (card + coinbase). Defaults to true. */
83
+ showFiatOption?: boolean;
82
84
  }
83
- export declare function AnySpendCheckoutTrigger({ recipientAddress, destinationTokenAddress, destinationTokenChainId, items, totalAmount: totalAmountOverride, organizationName, organizationLogo, themeColor, buttonText, workflowId, orgId, callbackMetadata, onSuccess, onError, returnUrl, returnLabel, classes, footer, defaultPaymentMethod, senderAddress, slots, content, theme, shipping, tax, discount, summaryLines, kycEnabled, }: AnySpendCheckoutTriggerProps): import("react/jsx-runtime").JSX.Element;
85
+ export declare function AnySpendCheckoutTrigger({ recipientAddress, destinationTokenAddress, destinationTokenChainId, items, totalAmount: totalAmountOverride, organizationName, organizationLogo, themeColor, buttonText, workflowId, orgId, callbackMetadata, onSuccess, onError, returnUrl, returnLabel, classes, footer, defaultPaymentMethod, senderAddress, slots, content, theme, shipping, tax, discount, summaryLines, kycEnabled, showFiatOption, }: AnySpendCheckoutTriggerProps): import("react/jsx-runtime").JSX.Element;
@@ -30,6 +30,8 @@ interface CheckoutPaymentPanelProps {
30
30
  feeOnTop?: boolean;
31
31
  /** When true, identity verification (KYC) is required before card payment. Defaults to false. */
32
32
  kycEnabled?: boolean;
33
+ /** Whether to show fiat payment options (card + coinbase). Defaults to true. */
34
+ showFiatOption?: boolean;
33
35
  }
34
- export declare function CheckoutPaymentPanel({ recipientAddress, destinationTokenAddress, destinationTokenChainId, totalAmount, buttonText, themeColor, returnUrl, returnLabel, onSuccess, onError, callbackMetadata, classes, defaultPaymentMethod, senderAddress, showPoints, showOrderId, isFormValid, feeOnTop, kycEnabled, }: CheckoutPaymentPanelProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function CheckoutPaymentPanel({ recipientAddress, destinationTokenAddress, destinationTokenChainId, totalAmount, buttonText, themeColor, returnUrl, returnLabel, onSuccess, onError, callbackMetadata, classes, defaultPaymentMethod, senderAddress, showPoints, showOrderId, isFormValid, feeOnTop, kycEnabled, showFiatOption, }: CheckoutPaymentPanelProps): import("react/jsx-runtime").JSX.Element;
35
37
  export {};
@@ -15,10 +15,8 @@ export interface B3ConfigContextType {
15
15
  stripePublishableKey?: string;
16
16
  createClientReferenceId?: (params: CreateOrderParams | CreateOnrampOrderParams) => Promise<string>;
17
17
  authStrategy: AuthStrategy;
18
- /** Override the API base URL for all auth operations (Better Auth client, Feathers JWT exchange). */
19
- apiUrl?: string;
20
18
  }
21
- export declare function B3ConfigProvider({ children, accountOverride, environment, defaultPermissions, automaticallySetFirstEoa, theme, clientType, partnerId, stripePublishableKey, createClientReferenceId, authStrategy, apiUrl, }: {
19
+ export declare function B3ConfigProvider({ children, accountOverride, environment, defaultPermissions, automaticallySetFirstEoa, theme, clientType, partnerId, stripePublishableKey, createClientReferenceId, authStrategy, }: {
22
20
  children: React.ReactNode;
23
21
  accountOverride?: Account;
24
22
  environment?: "development" | "production";
@@ -30,7 +28,5 @@ export declare function B3ConfigProvider({ children, accountOverride, environmen
30
28
  stripePublishableKey?: string;
31
29
  createClientReferenceId?: (params: CreateOrderParams | CreateOnrampOrderParams) => Promise<string>;
32
30
  authStrategy?: AuthStrategy;
33
- /** Override the API base URL for all auth operations (Better Auth client, Feathers JWT exchange). */
34
- apiUrl?: string;
35
31
  }): import("react/jsx-runtime").JSX.Element;
36
32
  export declare function useB3Config(): B3ConfigContextType;
@@ -10,7 +10,7 @@ import { ClientType } from "../../../client-manager";
10
10
  /**
11
11
  * Main B3Provider component
12
12
  */
13
- export declare function B3Provider({ theme, children, accountOverride, environment, automaticallySetFirstEoa, defaultEoaProvider, simDuneApiKey, toaster: _toaster, clientType, rpcUrls, partnerId, stripePublishableKey, onConnect, onLogout, connectors, overrideDefaultConnectors, createClientReferenceId, defaultPermissions, disableBSMNTAuthentication, queryClient, authStrategy, apiUrl, }: {
13
+ export declare function B3Provider({ theme, children, accountOverride, environment, automaticallySetFirstEoa, defaultEoaProvider, simDuneApiKey, toaster: _toaster, clientType, rpcUrls, partnerId, stripePublishableKey, onConnect, onLogout, connectors, overrideDefaultConnectors, createClientReferenceId, defaultPermissions, disableBSMNTAuthentication, queryClient, authStrategy, }: {
14
14
  theme: "light" | "dark";
15
15
  children: React.ReactNode;
16
16
  accountOverride?: Account;
@@ -39,20 +39,4 @@ export declare function B3Provider({ theme, children, accountOverride, environme
39
39
  queryClient?: QueryClient;
40
40
  /** Auth strategy: "thirdweb" (default, ecosystem wallet) or "better-auth" (email/password via Better Auth) */
41
41
  authStrategy?: AuthStrategy;
42
- /**
43
- * Override the API base URL for Better Auth operations.
44
- *
45
- * When set, the Better Auth client (signIn, signUp, signOut, getSession) will
46
- * target this URL instead of the default `B3_API_URL` / `NEXT_PUBLIC_B3_API`.
47
- *
48
- * Useful for local development where the frontend runs on localhost:3003 and
49
- * the b3-api runs on localhost:3031 — keeps the entire OAuth flow local so
50
- * sessions, cookies, and token exchange all hit the same server.
51
- *
52
- * @example
53
- * ```tsx
54
- * <B3Provider apiUrl="http://localhost:3031" ... />
55
- * ```
56
- */
57
- apiUrl?: string;
58
42
  }): import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,6 @@ export { RelayKitProviderWrapper } from "./B3Provider/RelayKitProviderWrapper";
5
5
  export { useB3 } from "./B3Provider/useB3";
6
6
  export { useB3Account } from "./B3Provider/useB3Account";
7
7
  export { useB3Config } from "./B3Provider/useB3Config";
8
- export { useBetterAuthClient } from "./B3Provider/BetterAuthClientProvider";
9
8
  export { StyleRoot } from "./StyleRoot";
10
9
  export { BetterAuthResetPassword, type BetterAuthResetPasswordProps } from "./SignInWithB3/BetterAuthResetPassword";
11
10
  export { BetterAuthSignIn, type BetterAuthSignInProps } from "./SignInWithB3/BetterAuthSignIn";