Skip to content

Commit b212c7c

Browse files
committed
minor fix to SFA web docs
1 parent 99cdd6d commit b212c7c

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

docs/sdk/core-kit/sfa-web/initialize.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ web3auth.init(privateKeyProvider);
6464
```javascript
6565
import { Web3Auth } from "@web3auth/single-factor-auth";
6666
import { 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
7070
const privateKeyProvider = new EthereumPrivateKeyProvider({
@@ -83,7 +83,7 @@ const privateKeyProvider = new EthereumPrivateKeyProvider({
8383

8484
const 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

docs/sdk/core-kit/sfa-web/install.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ description: "Web3Auth Core Kit Single Factor Auth Web SDK - Install | Documenta
1111
npm 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

0 commit comments

Comments
 (0)