import { auth } from '@/auth'; import { LoginButton } from '@/components/LoginButton'; import { redirect } from 'next/navigation'; export default async function SignInPage() { const session = await auth(); // redirect to home if user is already logged in if (session?.user) { redirect('/'); } return (