Some checks failed
Build and Push Docker Images (Trusted) / build-and-push (., docker/caddy/Dockerfile, caddy) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/l4-port-manager/Dockerfile, l4-port-manager) (push) Has been cancelled
Build and Push Docker Images (Trusted) / build-and-push (., docker/web/Dockerfile, web) (push) Has been cancelled
Tests / test (push) Has been cancelled
16 lines
441 B
TypeScript
Executable File
16 lines
441 B
TypeScript
Executable File
import { redirect } from "next/navigation";
|
|
import { auth } from "@/src/lib/auth";
|
|
import { getProviderDisplayList } from "@/src/lib/models/oauth-providers";
|
|
import LoginClient from "./LoginClient";
|
|
|
|
export default async function LoginPage() {
|
|
const session = await auth();
|
|
if (session) {
|
|
redirect("/");
|
|
}
|
|
|
|
const enabledProviders = await getProviderDisplayList();
|
|
|
|
return <LoginClient enabledProviders={enabledProviders} />;
|
|
}
|