File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ toc_max_heading_level: 2
99Get started with MetaMask SDK and [ Web3Auth SDK] ( https://web3auth.io/docs/ ) .
1010You can set up the SDKs in the following ways:
1111
12- - [ Quickstart template] ( #set-up-using-a-template ) - Clone the template to set up a Next.js and Wagmi dapp with both SDKs.
12+ - [ Quickstart template] ( #set-up-using-a-template ) - Clone the template to set up a Next.js and Web3Auth dapp with both SDKs.
1313- [ Manual setup] ( #set-up-manually ) - Set up both SDKs in an existing dapp.
1414
1515Features include:
@@ -89,7 +89,7 @@ Set up your providers in `app/providers.tsx`:
8989"use client";
9090
9191import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
92- import { type ReactNode, useState } from "react";
92+ import { type ReactNode, useState, useEffect } from "react";
9393import { Web3AuthProvider } from "@web3auth/modal/react";
9494import { WagmiProvider } from "@web3auth/modal/react/wagmi";
9595import { MetaMaskSDK } from "@metamask/sdk";
@@ -122,8 +122,7 @@ export function Providers({ children }: Props) {
122122 config={{
123123 web3AuthOptions: {
124124 clientId: process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID!,
125- web3AuthNetwork: "sapphire_devnet",
126- authBuildEnv: "testing", // Optional: Only for alpha/testing
125+ web3AuthNetwork: "sapphire_devnet"
127126 },
128127 }}
129128 >
You can’t perform that action at this time.
0 commit comments