2
0
Files

15 lines
376 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
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),
});