Skip to content

Commit

Permalink
- fixes reference to graph client in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Nov 29, 2023
1 parent 6d4d42e commit 71d8bfe
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/testClient.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import {GraphServiceClient} from "../src/graphclient/index";
import {AzureIdentityAuthenticationProvider} from "@microsoft/kiota-authentication-azure";
import {ClientSecretCredential} from "@azure/identity";
import { GraphServiceClient } from "../src/";
import { AzureIdentityAuthenticationProvider } from "@microsoft/kiota-authentication-azure";
import { ClientSecretCredential } from "@azure/identity";

const tokenCredential = new ClientSecretCredential(process.env.TENANT_ID, process.env.CLIENT_ID, process.env.CLIENT_SECRET );
const tokenCredential = new ClientSecretCredential(
process.env.TENANT_ID,
process.env.CLIENT_ID,
process.env.CLIENT_SECRET
);

const authProvider = new AzureIdentityAuthenticationProvider(tokenCredential);
export const graphServiceClient = GraphServiceClient.init({authProvider});

export const graphServiceClient = GraphServiceClient.init({ authProvider });

0 comments on commit 71d8bfe

Please sign in to comment.