File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Expose auth options on ` useConnectModal `
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
55import type { SmartWalletOptions } from "../../../../wallets/smart/types.js" ;
66import type { AppMetadata } from "../../../../wallets/types.js" ;
77import type { Theme } from "../../../core/design-system/index.js" ;
8+ import type { SiweAuthOptions } from "../../../core/hooks/auth/useSiweAuth.js" ;
89import { SetRootElementContext } from "../../../core/providers/RootElementContext.js" ;
910import { WalletUIStatesProvider } from "../../providers/wallet-ui-states-provider.js" ;
1011import { canFitWideModal } from "../../utils/canFitWideModal.js" ;
@@ -432,4 +433,14 @@ export type UseConnectModalOptions = {
432433 * If you want to hide the branding, set this prop to `false`
433434 */
434435 showThirdwebBranding ?: boolean ;
436+
437+ /**
438+ * Enable SIWE (Sign in with Ethererum) by passing an object of type `SiweAuthOptions` to
439+ * enforce the users to sign a message after connecting their wallet to authenticate themselves.
440+ *
441+ * Refer to the [`SiweAuthOptions`](https://portal.thirdweb.com/references/typescript/v5/SiweAuthOptions) for more details
442+ */
443+ auth ?: SiweAuthOptions ;
435444} ;
445+
446+ // TODO: consilidate Button/Embed/Modal props into one type with extras
You can’t perform that action at this time.
0 commit comments