Skip to content

Commit 84d1623

Browse files
[Login] update config (#6347)
1 parent b60d251 commit 84d1623

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

apps/login/src/api/login/config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "server-only";
2+
import { polygonAmoy } from "thirdweb/chains";
23
import type { InAppWalletAuth } from "thirdweb/wallets";
34
import 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
}

apps/login/src/components/login-form.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)