mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
19 lines
464 B
TypeScript
19 lines
464 B
TypeScript
import type { PageProps } from "app/_types";
|
|
import { notFound } from "next/navigation";
|
|
import { z } from "zod";
|
|
|
|
import SamlIdpClient from "~/auth/saml-idp/saml-idp-view";
|
|
|
|
const querySchema = z.object({
|
|
code: z.string(),
|
|
});
|
|
|
|
export default async function SamlIdpPage({ searchParams }: PageProps) {
|
|
const parsed = querySchema.safeParse(await searchParams);
|
|
if (!parsed.success) {
|
|
notFound();
|
|
}
|
|
|
|
return <SamlIdpClient code={parsed.data.code} />;
|
|
}
|