* prefetch sso providers in settings

* hide sso enforcement in standard plan
This commit is contained in:
Philipinho
2025-03-08 18:26:34 +00:00
parent fd36076ae7
commit 5c9e0a2630
3 changed files with 21 additions and 11 deletions
@@ -8,6 +8,7 @@ import { getGroups } from "@/features/group/services/group-service.ts";
import { QueryParams } from "@/lib/types.ts";
import { getWorkspaceMembers } from "@/features/workspace/services/workspace-service.ts";
import { getLicenseInfo } from "@/ee/licence/services/license-service.ts";
import { getSsoProviders } from '@/ee/security/services/security-service.ts';
export const prefetchWorkspaceMembers = () => {
const params = { limit: 100, page: 1, query: "" } as QueryParams;
@@ -49,3 +50,10 @@ export const prefetchLicense = () => {
queryFn: () => getLicenseInfo(),
});
};
export const prefetchSsoProviders = () => {
queryClient.prefetchQuery({
queryKey: ["sso-providers"],
queryFn: () => getSsoProviders(),
});
};