import { Or } from '@/components/auth/or'; import { SignInEmailForm } from '@/components/auth/sign-in-email-form'; import { SignInGithub } from '@/components/auth/sign-in-github'; import { SignInGoogle } from '@/components/auth/sign-in-google'; import { LogoSquare } from '@/components/logo'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; import { PAGE_TITLES, createTitle } from '@/utils/title'; import { createFileRoute, redirect } from '@tanstack/react-router'; import { AlertCircle } from 'lucide-react'; import { z } from 'zod'; export const Route = createFileRoute('/_login/login')({ component: LoginPage, head: () => ({ meta: [{ title: createTitle(PAGE_TITLES.LOGIN) }], }), validateSearch: z.object({ error: z.string().optional(), correlationId: z.string().optional(), }), }); function LoginPage() { const { error, correlationId } = Route.useSearch(); return (
{error}
{correlationId && ( <>Correlation ID: {correlationId}
Contact us if you have any issues.{' '} hello[at]openpanel.dev
> )}