import type { Metadata } from 'next' import { redirect } from 'next/navigation' import { signIn } from '@/auth' import { getCurrentUser } from '@/lib/auth/current' import { de } from '@/lib/i18n/de' export const metadata: Metadata = { title: de.auth.signIn } export const dynamic = 'force-dynamic' export default async function SignInPage() { if (await getCurrentUser()) redirect('/uebersicht') async function anmelden() { 'use server' await signIn('discord', { redirectTo: '/uebersicht' }) } return (

{de.app.name}

{de.auth.intro}

) }