Skip to content

Commit 33c23e7

Browse files
committed
[SDK] Fix: Remove auth from useConnectModal props as it's not currently supported (#5618)
Fixes #5615 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on removing the `auth` property from the `useConnectModal` options in the `thirdweb` package, as it is currently unsupported. ### Detailed summary - Removed the `auth` property from `UseConnectModalOptions` in `packages/thirdweb/src/react/web/ui/ConnectWallet/useConnectModal.tsx`. - Updated documentation to reflect the removal of the `auth` prop. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 1a2390b commit 33c23e7

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.changeset/tidy-zoos-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix: Removed the auth prop from useConnectModal as it is currently not supported

packages/thirdweb/src/react/web/ui/ConnectWallet/useConnectModal.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
55
import type { SmartWalletOptions } from "../../../../wallets/smart/types.js";
66
import type { AppMetadata } from "../../../../wallets/types.js";
77
import type { Theme } from "../../../core/design-system/index.js";
8-
import type { SiweAuthOptions } from "../../../core/hooks/auth/useSiweAuth.js";
98
import { SetRootElementContext } from "../../../core/providers/RootElementContext.js";
109
import { WalletUIStatesProvider } from "../../providers/wallet-ui-states-provider.js";
1110
import { canFitWideModal } from "../../utils/canFitWideModal.js";
@@ -433,14 +432,6 @@ export type UseConnectModalOptions = {
433432
* If you want to hide the branding, set this prop to `false`
434433
*/
435434
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;
444435
};
445436

446437
// TODO: consilidate Button/Embed/Modal props into one type with extras

0 commit comments

Comments
 (0)