* add new design stuff * add more ui things * add more ui changes * more ui changes * add more design * update emoji
17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { getServerAuthSession } from "~/server/auth";
|
|
import LoginPage from "../login/login-page";
|
|
import { getProviders } from "next-auth/react";
|
|
|
|
export default async function Login() {
|
|
const session = await getServerAuthSession();
|
|
|
|
if (session) {
|
|
redirect("/dashboard");
|
|
}
|
|
|
|
const providers = await getProviders();
|
|
|
|
return <LoginPage providers={Object.values(providers ?? {})} isSignup />;
|
|
}
|