14 lines
334 B
TypeScript
14 lines
334 B
TypeScript
import { z } from "zod";
|
|
|
|
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
|
|
|
|
export const getAlbyKeys = async () => {
|
|
const appKeys = await getAppKeysFromSlug("alby");
|
|
return appKeysSchema.parse(appKeys);
|
|
};
|
|
|
|
const appKeysSchema = z.object({
|
|
client_id: z.string().min(1),
|
|
client_secret: z.string().min(1),
|
|
});
|