cal.pub0.org/packages/trpc/server/routers/publicViewer/samlTenantProduct.handler.ts

21 lines
550 B
TypeScript

import { ssoTenantProduct } from "@calcom/features/ee/sso/lib/sso";
import type { PrismaClient } from "@calcom/prisma";
import type { TSamlTenantProductInputSchema } from "./samlTenantProduct.schema";
type SamlTenantProductOptions = {
ctx: {
prisma: PrismaClient;
};
input: TSamlTenantProductInputSchema;
};
export const samlTenantProductHandler = ({ ctx, input }: SamlTenantProductOptions) => {
const { prisma } = ctx;
const { email } = input;
return ssoTenantProduct(prisma, email);
};
export default samlTenantProductHandler;