Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions apps/dashboard/src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,32 @@ import { useTheme } from "next-themes";
import { useSearchParams } from "next/navigation";
import { Suspense, useEffect, useState } from "react";
import { ConnectEmbed } from "thirdweb/react";
import { createWallet, inAppWallet } from "thirdweb/wallets";
import { ThirdwebMiniLogo } from "../components/ThirdwebMiniLogo";
import { getSDKTheme } from "../components/sdk-component-theme";
import { doLogin, doLogout, getLoginPayload, isLoggedIn } from "./auth-actions";

const wallets = [
inAppWallet({
auth: {
options: [
"google",
"apple",
"facebook",
"github",
"email",
"phone",
"passkey",
],
},
}),
createWallet("io.metamask"),
createWallet("com.coinbase.wallet"),
createWallet("io.rabby"),
createWallet("me.rainbow"),
createWallet("io.zerion.wallet"),
];

export default function LoginPage() {
return (
<div className="relative grid h-screen place-items-center bg-muted/30">
Expand Down Expand Up @@ -74,6 +96,7 @@ function CustomConnectEmmbed() {
return isLoggedInResult;
},
}}
wallets={wallets}
client={client}
modalSize={isLG ? "wide" : "compact"}
theme={getSDKTheme(theme === "light" ? "light" : "dark")}
Expand Down
Loading