signin component

This commit is contained in:
Max Peintner
2023-07-17 17:14:02 +02:00
parent 0954b9372e
commit e659824b4c
6 changed files with 76 additions and 12 deletions

View File

@@ -0,0 +1,20 @@
import { getLegalAndSupportSettings, server } from "#/lib/zitadel";
import { SignInWithIDP } from "@zitadel/react";
export default async function Page({
searchParams,
}: {
searchParams: Record<string | number | symbol, string | undefined>;
}) {
const legal = await getLegalAndSupportSettings(server);
return (
<div className="flex flex-col items-center space-y-4">
<h1>Register</h1>
<p className="ztdl-p">Create your ZITADEL account.</p>
{legal && <SignInWithIDP server={server}></SignInWithIDP>}
</div>
);
}