cal.pub0.org/packages/app-store/webex/lib/getWebexAppKeys.ts

14 lines
335 B
TypeScript

import { z } from "zod";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
const webexAppKeysSchema = z.object({
client_id: z.string(),
client_secret: z.string(),
});
export const getWebexAppKeys = async () => {
const appKeys = await getAppKeysFromSlug("webex");
return webexAppKeysSchema.parse(appKeys);
};