@@ -10,11 +10,11 @@ Get started with MetaMask SDK and [Web3Auth SDK](https://web3auth.io/docs/).
10
10
You can set up the SDKs in the following ways:
11
11
12
12
- [ Quickstart template] ( #set-up-using-a-template ) - Clone the template to set up a Next.js and Web3Auth dapp with both SDKs.
13
- - [ Manual setup] ( #set-up-manually ) - Set up both SDKs in an existing dapp.
13
+ - [ Manual setup] ( #set-up-manually ) - Set up Web3Auth SDK in an existing dapp.
14
14
15
15
Features include:
16
16
17
- - ** Dual SDK integration ** - Seamlessly combine MetaMask and Web3Auth SDKs .
17
+ - ** MetaMask SDK built into Web3Auth ** - Use MetaMask SDK features directly within the Web3Auth SDK .
18
18
- ** Web3Auth social login** - Enable users to sign in with an email or social media account.
19
19
- ** Wallet connection** - Connect to MetaMask wallet with enhanced features.
20
20
- ** Mobile experience** - Optimized for both desktop and mobile users.
@@ -88,10 +88,9 @@ Set up your providers in `app/providers.tsx`:
88
88
"use client";
89
89
90
90
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
91
- import { type ReactNode, useState, useEffect } from "react";
91
+ import { type ReactNode, useState } from "react";
92
92
import { Web3AuthProvider } from "@web3auth/modal/react";
93
93
import { WagmiProvider } from "@web3auth/modal/react/wagmi";
94
- import { MetaMaskSDK } from "@metamask/sdk";
95
94
96
95
type Props = {
97
96
children: ReactNode;
@@ -100,22 +99,6 @@ type Props = {
100
99
export function Providers({ children }: Props) {
101
100
const [queryClient] = useState(() => new QueryClient());
102
101
103
- useEffect(() => {
104
- if (typeof window === "undefined") return;
105
-
106
- const MMSDK = new MetaMaskSDK({
107
- dappMetadata: {
108
- name: "MetaMask Web3Auth Integration",
109
- url: window.location.href,
110
- },
111
- });
112
-
113
- const ethereum = MMSDK.getProvider();
114
- if (ethereum) {
115
- window.ethereum = ethereum as unknown as IEthereum;
116
- }
117
- }, []);
118
-
119
102
return (
120
103
<Web3AuthProvider
121
104
config={{
0 commit comments