import { Alert, AlertDescription } from "@/components/ui/alert"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { authOptions } from "@/server/auth"; import { Info } from "lucide-react"; import serverConfig from "@karakeep/shared/config"; import CredentialsForm from "./CredentialsForm"; import SignInProviderButton from "./SignInProviderButton"; export default async function SignInForm() { const providers = authOptions.providers; let providerValues; if (providers) { providerValues = Object.values(providers).filter( // Credentials are handled manually by the sign in form (p) => p.id != "credentials", ); } return (
Welcome Back Sign in to your Karakeep account {serverConfig.demoMode && (

Demo Mode

Email: {serverConfig.demoMode.email}

Password: {serverConfig.demoMode.password}

)} {providerValues && providerValues.length > 0 && ( <>
Or
{providerValues.map((provider) => ( ))}
)}
); }