File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 11import "server-only" ;
2+ import { polygonAmoy } from "thirdweb/chains" ;
23import type { InAppWalletAuth } from "thirdweb/wallets" ;
34import type { Permission } from "../../components/permission-card" ;
45
@@ -10,6 +11,12 @@ export async function getLoginConfig(clientId: string): Promise<LoginConfig> {
1011 if ( clientId === "b24106adfb2ec212e6ec4d3b2e04db9e" ) {
1112 return {
1213 ...DEFAULT_CONFIG ,
14+ id : "mode_earn_app" ,
15+ name : "Mode Earn App" ,
16+ logo : "https://www.modemobile.com/" ,
17+ logoLink :
18+ "https://cdn.prod.website-files.com/61c25b8fda22538c7d02b8ae/64109452b73a8648ed02afee_mode-logo.svg" ,
19+ chainId : polygonAmoy . id ,
1320 sessionKeySignerAddress : "0xb89e32a18350d6df5bf0b89a227E098013C4Fa72" ,
1421 } ;
1522 }
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ export function LoginForm(props: {
8484 dismissible : false ,
8585 } ) ;
8686 try {
87+ // TODO: allow for an array of chainIds here
88+ // should switch chain and add session key for each chainId
8789 await ensureSessionKey ( {
8890 account : activeAccount ,
8991 client : thirdwebClient ,
You can’t perform that action at this time.
0 commit comments