Refactored configuration loading function.

This commit is contained in:
2026-03-07 15:18:46 +01:00
parent 67dd2045e3
commit aa6f9e24f8
9 changed files with 63 additions and 71 deletions

View File

@@ -2,7 +2,7 @@
import { minimatch } from "minimatch";
import { loadPublicConfig } from "../../index.ts";
import { loadConfig } from "../../index.ts";
import { getGraphClient } from "../../graph/auth.ts";
type PermissionRow = {
@@ -28,7 +28,7 @@ export function filterByDisplayName<T extends DisplayNameRow>(rows: T[], pattern
}
export async function getGraphClientFromPublicConfig(): Promise<{ client: any }> {
const config = await loadPublicConfig();
const config = await loadConfig("public-config");
return getGraphClient({
tenantId: config.tenantId,
clientId: config.clientId,