diff --git a/app/page.tsx b/app/page.tsx index 6346d08..f29a66d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -9,8 +9,42 @@ import { SignUpForm } from "./signup-form" import { WelcomeBackCard } from "./welcome-back-card" import { SubmitButton } from "@/components/submit-button" +import { + Card, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card" + export default async function Home() { - const session = await appClient.getSession() + let session; + let error; + + try { + const session = await appClient.getSession() + } catch (e) { + error = e instanceof Error ? e : new Error('An unexpected error occurred') + } + + + if (error) { + return ( +