diff --git a/src/cli/commands/shared.ts b/src/cli/commands/shared.ts index b3b8dc7..ba21092 100644 --- a/src/cli/commands/shared.ts +++ b/src/cli/commands/shared.ts @@ -2,9 +2,6 @@ import { minimatch } from "minimatch"; -import { loadConfig } from "../../index.ts"; -import { getGraphClient } from "../../graph/auth.ts"; - type PermissionRow = { permissionValue?: string | null; permissionDisplayName?: string | null; @@ -26,8 +23,3 @@ export function filterByDisplayName(rows: T[], pattern minimatch(item.displayName ?? "", pattern, { nocase: true }), ); } - -export async function getGraphClientFromPublicConfig(): Promise<{ client: any }> { - const config = await loadConfig("public-config"); - return getGraphClient(config.tenantId, config.clientId); -}