diff --git a/.changeset/tame-badgers-drum.md b/.changeset/tame-badgers-drum.md new file mode 100644 index 00000000000..b7d293b64f8 --- /dev/null +++ b/.changeset/tame-badgers-drum.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Fix popup and window auth modes conflicting on firefox diff --git a/packages/thirdweb/src/wallets/in-app/core/wallet/index.ts b/packages/thirdweb/src/wallets/in-app/core/wallet/index.ts index ce72a591ecf..748d790759b 100644 --- a/packages/thirdweb/src/wallets/in-app/core/wallet/index.ts +++ b/packages/thirdweb/src/wallets/in-app/core/wallet/index.ts @@ -40,7 +40,9 @@ export async function connectInAppWallet( connector: InAppConnector, ): Promise<[Account, Chain]> { if ( + // if auth mode is not specified, the default is popup createOptions?.auth?.mode !== "popup" && + createOptions?.auth?.mode !== undefined && connector.authenticateWithRedirect ) { const strategy = options.strategy;