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";
5
5
import type { SmartWalletOptions } from "../../../../wallets/smart/types.js" ;
6
6
import type { AppMetadata } from "../../../../wallets/types.js" ;
7
7
import type { Theme } from "../../../core/design-system/index.js" ;
8
+ import type { SiweAuthOptions } from "../../../core/hooks/auth/useSiweAuth.js" ;
8
9
import { SetRootElementContext } from "../../../core/providers/RootElementContext.js" ;
9
10
import { WalletUIStatesProvider } from "../../providers/wallet-ui-states-provider.js" ;
10
11
import { canFitWideModal } from "../../utils/canFitWideModal.js" ;
@@ -432,4 +433,14 @@ export type UseConnectModalOptions = {
432
433
* If you want to hide the branding, set this prop to `false`
433
434
*/
434
435
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 ;
435
444
} ;
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