cal.pub0.org/packages/app-store/basecamp3/lib/getBasecampKeys.ts

15 lines
376 B
TypeScript

import { z } from "zod";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
export const getBasecampKeys = async () => {
const appKeys = await getAppKeysFromSlug("basecamp3");
return appKeysSchema.parse(appKeys);
};
const appKeysSchema = z.object({
client_id: z.string().min(1),
client_secret: z.string().min(1),
user_agent: z.string().min(1),
});