Skip to content

Commit 63760ec

Browse files
author
Guru
committed
fix: login card addition of btc network
1 parent 882bcc7 commit 63760ec

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

demo/redirect-flow-example/src/App.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useEffect, useState } from "react";
22
import {
3-
WEB3AUTH_NETWORK,
43
COREKIT_STATUS,
54
makeEthereumSigner,
65
AggregateVerifierLoginParams,
@@ -101,7 +100,7 @@ const uiConsole = (...args: any[]): void => {
101100
export const DEFAULT_CHAIN_CONFIG: CustomChainConfig = {
102101
chainNamespace: CHAIN_NAMESPACES.EIP155,
103102
chainId: "0x66eee", // Arbitrum Sepolia chain ID
104-
rpcTarget: "https://arbitrum-sepolia.blockpi.network/v1/rpc/private",
103+
rpcTarget: "https://sepolia-rollup.arbitrum.io/rpc",
105104
displayName: "Arbitrum Sepolia Testnet",
106105
blockExplorerUrl: "https://sepolia.arbiscan.io", // Arbitrum Sepolia block explorer URL
107106
ticker: "ETH",
@@ -189,10 +188,15 @@ function App() {
189188
throw new Error("initiated to login");
190189
}
191190
const verifierConfig = {
191+
aggregateVerifierIdentifier: "aggregate-sapphire",
192192
subVerifierDetails: {
193193
typeOfLogin: "google",
194-
verifier: "w3-google-temp",
194+
verifier: "w3-google-dev",
195+
// verifier: "w3-google-temp",
195196
clientId: "759944447575-6rm643ia1i9ngmnme3eq5viiep5rp6s0.apps.googleusercontent.com",
197+
jwtParams: {
198+
verifierIdField: "email",
199+
},
196200
},
197201
};
198202
// const verifierConfig = {

demo/redirect-flow-example/src/components/LoginCard.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface LoginCardProps {
1515
handleSocialLogin: (item: SocialLoginObj) => void;
1616
}
1717

18-
const LoginCard: React.FC<LoginCardProps> = ({ handleEmailPasswordLess, handleSocialLogin }) => {
18+
const LoginCard: React.FC<LoginCardProps> = ({ handleEmailPasswordLess, handleSocialLogin }): React.ReactElement => {
1919
const { setKeyType } = useCoreKit();
2020
const [loginHint, setLoginHint] = React.useState<string>("");
2121
const [defaultValue, setDefaultValue] = React.useState(localStorage.getItem("keyType") || KeyType.secp256k1);
@@ -28,8 +28,19 @@ const LoginCard: React.FC<LoginCardProps> = ({ handleEmailPasswordLess, handleSo
2828
{
2929
name: "Solana (ed25519)",
3030
value: KeyType.ed25519,
31+
icon: <img src={"https://solana.tor.us/img/icon-solana.fb290bef.svg"} alt={"Solana"} width={20} height={20} className="h-5 w-5" />,
32+
},
33+
{
34+
name: "Bitcoin (secp256k1)",
35+
value: "BTC",
3136
icon: (
32-
<img src={"https://solana.com/_next/static/media/solanaLogoMark.17260911.svg"} alt={"Solana"} width={20} height={20} className="h-5 w-5" />
37+
<img
38+
src={"https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bitcoin.svg/128px-Bitcoin.svg.png"}
39+
alt={"Bitcoin"}
40+
width={20}
41+
height={20}
42+
className="h-5 w-5"
43+
/>
3344
),
3445
},
3546
];

0 commit comments

Comments
 (0)