cal.pub0.org/packages/app-store/zoomvideo/lib/getZoomAppKeys.ts

14 lines
331 B
TypeScript
Raw Normal View History

2022-06-11 22:15:29 +00:00
import { z } from "zod";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
const zoomAppKeysSchema = z.object({
client_id: z.string(),
client_secret: z.string(),
});
export const getZoomAppKeys = async () => {
const appKeys = await getAppKeysFromSlug("zoom");
return zoomAppKeysSchema.parse(appKeys);
};