frontend/composables/SSOConfig.ts
2025-05-26 11:19:15 +02:00

11 lines
273 B
TypeScript

import type { Instance } from "@versia/client/schemas";
import type { z } from "zod";
export const useSSOConfig = (): Ref<z.infer<
typeof Instance.shape.sso
> | null> => {
const instance = useInstance();
return computed(() => instance.value?.sso || null);
};