Skip to content

Commit

Permalink
[Login] update config (#6347)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges authored Feb 26, 2025
1 parent b60d251 commit 84d1623
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/login/src/api/login/config.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -10,6 +11,12 @@ export async function getLoginConfig(clientId: string): Promise<LoginConfig> {
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",
};
}
Expand Down
2 changes: 2 additions & 0 deletions apps/login/src/components/login-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84d1623

Please sign in to comment.