diff --git a/apps/login/src/api/login/config.ts b/apps/login/src/api/login/config.ts index 4aa10be7f2c..597ad3ebc38 100644 --- a/apps/login/src/api/login/config.ts +++ b/apps/login/src/api/login/config.ts @@ -1,4 +1,5 @@ import "server-only"; +import { polygonAmoy } from "thirdweb/chains"; import type { InAppWalletAuth } from "thirdweb/wallets"; import type { Permission } from "../../components/permission-card"; @@ -10,6 +11,12 @@ export async function getLoginConfig(clientId: string): Promise { if (clientId === "b24106adfb2ec212e6ec4d3b2e04db9e") { return { ...DEFAULT_CONFIG, + id: "mode_earn_app", + name: "Mode Earn App", + logo: "https://www.modemobile.com/", + logoLink: + "https://cdn.prod.website-files.com/61c25b8fda22538c7d02b8ae/64109452b73a8648ed02afee_mode-logo.svg", + chainId: polygonAmoy.id, sessionKeySignerAddress: "0xb89e32a18350d6df5bf0b89a227E098013C4Fa72", }; } diff --git a/apps/login/src/components/login-form.tsx b/apps/login/src/components/login-form.tsx index 3ee105f4002..5e9ed1cfcb3 100644 --- a/apps/login/src/components/login-form.tsx +++ b/apps/login/src/components/login-form.tsx @@ -84,6 +84,8 @@ export function LoginForm(props: { dismissible: false, }); try { + // TODO: allow for an array of chainIds here + // should switch chain and add session key for each chainId await ensureSessionKey({ account: activeAccount, client: thirdwebClient,