Skip to content

Commit eb6e9fe

Browse files
committed
Update client ids
1 parent 0d080ad commit eb6e9fe

File tree

47 files changed

+190
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+190
-131
lines changed

custom-authentication/grouped-connection/auth0-google-implicit-grouped-example/src/web3authContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
22

33
// Dashboard Registration
4-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
4+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
55

66

77
// Instantiate SDK
88
const web3AuthOptions: Web3AuthOptions = {
99
clientId,
10-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
1111

1212
};
1313

custom-authentication/grouped-connection/auth0-google-jwt-grouped-example/src/web3authContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
22

33
// Dashboard Registration
4-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
4+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
55

66

77
// Instantiate SDK
88
const web3AuthOptions: Web3AuthOptions = {
99
clientId,
10-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
1111

1212
};
1313

custom-authentication/grouped-connection/firebase-google-jwt-grouped-example/src/web3authContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
22

33
// Dashboard Registration
4-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
4+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
55

66

77
// Instantiate SDK
88
const web3AuthOptions: Web3AuthOptions = {
99
clientId,
10-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
1111

1212
};
1313

custom-authentication/grouped-connection/modal-google-email-passwordless-grouped-example/src/web3authContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { type Web3AuthContextConfig } from "@web3auth/modal/react";
44
// IMP END - Quick Start
55

66
// IMP START - Dashboard Registration
7-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
7+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
88
// IMP END - Dashboard Registration
99

1010
// IMP START - Instantiate SDK
1111
const web3AuthContextConfig: Web3AuthContextConfig = {
1212
web3AuthOptions: {
1313
clientId,
14-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
14+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
1515
modalConfig: {
1616
connectors: {
1717
[WALLET_CONNECTORS.AUTH]: {

custom-authentication/single-connection/auth0-implicit-example/src/App.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
22
import "./App.css";
3-
import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser } from "@web3auth/modal/react";
3+
import { useEnableMFA, useManageMFA, useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser } from "@web3auth/modal/react";
44
import { WALLET_CONNECTORS, AUTH_CONNECTION } from "@web3auth/modal";
55
import { useAccount } from "wagmi";
66
import { SendTransaction } from "./components/sendTransaction";
@@ -12,6 +12,8 @@ function App() {
1212
const { disconnect } = useWeb3AuthDisconnect();
1313
const { userInfo } = useWeb3AuthUser();
1414
const { address } = useAccount();
15+
const { manageMFA, loading: manageMFALoading, error: manageMFAError } = useManageMFA();
16+
const { enableMFA, loading: enableMFALoading, error: enableMFAError } = useEnableMFA();
1517

1618
const loginWithAuth0 = async () => {
1719
await connectTo(WALLET_CONNECTORS.AUTH, {
@@ -43,7 +45,22 @@ function App() {
4345
Log Out
4446
</button>
4547
</div>
48+
<div>
49+
<button onClick={() => enableMFA()} className="card">
50+
Enable MFA
51+
</button>
52+
{enableMFALoading && <div className="loading">Enabling MFA...</div>}
53+
{enableMFAError && <div className="error">{enableMFAError.message}</div>}
54+
</div>
55+
<div>
56+
<button onClick={() => manageMFA()} className="card">
57+
Manage MFA
58+
</button>
59+
{manageMFALoading && <div className="loading">Managing MFA...</div>}
60+
{manageMFAError && <div className="error">{manageMFAError.message}</div>}
61+
</div>
4662
</div>
63+
4764
<SendTransaction />
4865
<Balance />
4966
<SwitchChain />

custom-authentication/single-connection/auth0-implicit-example/src/web3authContext.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
22

33
// IMP START - Dashboard Registration
4-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
4+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
55
// IMP END - Dashboard Registration
66

77
// Instantiate SDK
88
const web3AuthOptions: Web3AuthOptions = {
99
clientId,
10-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
11-
10+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
1211
};
1312

1413
const web3AuthContextConfig = {

custom-authentication/single-connection/auth0-jwt-example/src/App.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
22
import "./App.css";
3-
import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react";
3+
import { useEnableMFA, useManageMFA, useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react";
44
import { WALLET_CONNECTORS, AUTH_CONNECTION } from "@web3auth/modal";
55
import { useAccount } from "wagmi";
66
import { SendTransaction } from "./components/sendTransaction";
@@ -14,6 +14,8 @@ function App() {
1414
const { userInfo } = useWeb3AuthUser();
1515
const { address } = useAccount();
1616
const { getIdTokenClaims, loginWithPopup, logout } = useAuth0();
17+
const { manageMFA, loading: manageMFALoading, error: manageMFAError } = useManageMFA();
18+
const { enableMFA, loading: enableMFALoading, error: enableMFAError } = useEnableMFA();
1719

1820
const loginWithAuth0 = async () => {
1921
try {
@@ -66,6 +68,20 @@ function App() {
6668
Log Out
6769
</button>
6870
</div>
71+
<div>
72+
<button onClick={() => enableMFA()} className="card">
73+
Enable MFA
74+
</button>
75+
{enableMFALoading && <div className="loading">Enabling MFA...</div>}
76+
{enableMFAError && <div className="error">{enableMFAError.message}</div>}
77+
</div>
78+
<div>
79+
<button onClick={() => manageMFA()} className="card">
80+
Manage MFA
81+
</button>
82+
{manageMFALoading && <div className="loading">Managing MFA...</div>}
83+
{manageMFAError && <div className="error">{manageMFAError.message}</div>}
84+
</div>
6985
</div>
7086
<SendTransaction />
7187
<Balance />

custom-authentication/single-connection/auth0-jwt-example/src/web3authContext.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
22

33
// Dashboard Registration
4-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
4+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
55

66
// Instantiate SDK
77
const web3AuthOptions: Web3AuthOptions = {
88
clientId,
9-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10-
9+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
10+
authBuildEnv: "testing",
1111
};
1212

1313
const web3AuthContextConfig = {

custom-authentication/single-connection/cognito-implicit-example/src/App.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-console */
22
import "./App.css";
3-
import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser } from "@web3auth/modal/react";
3+
import { useEnableMFA, useManageMFA, useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser } from "@web3auth/modal/react";
44
import { WALLET_CONNECTORS, AUTH_CONNECTION } from "@web3auth/modal";
55
import { useAccount } from "wagmi";
66
import { SendTransaction } from "./components/sendTransaction";
@@ -12,6 +12,8 @@ function App() {
1212
const { disconnect } = useWeb3AuthDisconnect();
1313
const { userInfo } = useWeb3AuthUser();
1414
const { address } = useAccount();
15+
const { manageMFA, loading: manageMFALoading, error: manageMFAError } = useManageMFA();
16+
const { enableMFA, loading: enableMFALoading, error: enableMFAError } = useEnableMFA();
1517

1618
const loginWithCognito = async () => {
1719
await connectTo(WALLET_CONNECTORS.AUTH, {
@@ -50,6 +52,20 @@ function App() {
5052
Log Out
5153
</button>
5254
</div>
55+
<div>
56+
<button onClick={() => enableMFA()} className="card">
57+
Enable MFA
58+
</button>
59+
{enableMFALoading && <div className="loading">Enabling MFA...</div>}
60+
{enableMFAError && <div className="error">{enableMFAError.message}</div>}
61+
</div>
62+
<div>
63+
<button onClick={() => manageMFA()} className="card">
64+
Manage MFA
65+
</button>
66+
{manageMFALoading && <div className="loading">Managing MFA...</div>}
67+
{manageMFAError && <div className="error">{manageMFAError.message}</div>}
68+
</div>
5369
</div>
5470
<SendTransaction />
5571
<Balance />

custom-authentication/single-connection/cognito-implicit-example/src/web3authContext.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal";
22

33
// Dashboard Registration
4-
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
4+
const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io
55

66
// Instantiate SDK
77
const web3AuthOptions: Web3AuthOptions = {
88
clientId,
9-
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
10-
9+
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
10+
authBuildEnv: "testing",
1111
};
1212

1313
const web3AuthContextConfig = {

0 commit comments

Comments
 (0)