File tree Expand file tree Collapse file tree
docs/sdk/core-kit/sfa-web Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ web3auth.init(privateKeyProvider);
6464``` javascript
6565import { Web3Auth } from " @web3auth/single-factor-auth" ;
6666import { EthereumPrivateKeyProvider } from " @web3auth/ethereum-provider" ;
67- import { CHAIN_NAMESPACES } from " @web3auth/base" ;
67+ import { CHAIN_NAMESPACES , WEB3AUTH_NETWORK } from " @web3auth/base" ;
6868
6969// Swap with a different provider if you want to use a different blockchain
7070const privateKeyProvider = new EthereumPrivateKeyProvider ({
@@ -83,7 +83,7 @@ const privateKeyProvider = new EthereumPrivateKeyProvider({
8383
8484const web3auth = new Web3Auth ({
8585 clientId: " WEB3AUTH_CLIENT_ID" , // Get your Client ID from the Web3Auth Dashboard
86- web3AuthNetwork: " sapphire_mainnet " ,
86+ web3AuthNetwork: WEB3AUTH_NETWORK . SAPPHIRE_MAINNET ,
8787 usePnPKey: false , // By default, this SDK returns CoreKitKey by default.
8888});
8989
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ description: "Web3Auth Core Kit Single Factor Auth Web SDK - Install | Documenta
1111npm install --save @web3auth/single-factor-auth
1212```
1313
14+ ## [ ` @web3auth/ethereum-provider ` ] ( https://npmjs.com/package/@web3auth/ethereum-provider )
15+
16+ ``` bash npm2yarn
17+ npm install --save @web3auth/ethereum-provider
18+ ```
19+
1420## Consider adding ` @web3auth/base ` to your project
1521
1622``` bash npm2yarn
You can’t perform that action at this time.
0 commit comments