How to use the @microsoft/microsoft-graph-client/lib/es/Client.Client.initWithMiddleware function in @microsoft/microsoft-graph-client

To help you get started, we’ve selected a few @microsoft/microsoft-graph-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoftgraph / microsoft-graph-toolkit / src / mock / MockProvider.ts View on Github external
constructor(provider: MockProvider) {

    this.client = Client.initWithMiddleware({
      baseUrl: this.baseUrl + escape(this.rootGraphUrl),
      authProvider: provider