-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathweb3authConfig.ts
More file actions
34 lines (31 loc) · 1.14 KB
/
web3authConfig.ts
File metadata and controls
34 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { CHAIN_NAMESPACES, WEB3AUTH_NETWORK, type Web3AuthContextConfig } from "@web3auth/react-native-sdk";
// IMP START - Dashboard Registration
// Get your Client ID from https://dashboard.web3auth.io
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ";
// IMP END - Dashboard Registration
// IMP START - SDK Initialization
const web3AuthConfig: Web3AuthContextConfig = {
web3AuthOptions: {
clientId,
// IMP START - Allowlist bundle ID
redirectUrl: "web3authrnbarefirebase://auth",
// IMP END - Allowlist bundle ID
network: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
// IMP START - Chain Config
chains: [
{
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0xaa36a7", // Ethereum Sepolia Testnet
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
displayName: "Ethereum Sepolia Testnet",
blockExplorerUrl: "https://sepolia.etherscan.io",
ticker: "ETH",
tickerName: "Ethereum",
},
],
defaultChainId: "0xaa36a7",
// IMP END - Chain Config
},
};
// IMP END - SDK Initialization
export default web3AuthConfig;