t { MsalClientSetup  } from &quot;@pnp/msaljsclient&quot;;
import { graph } from &quot;@pnp/graph/presets/all&quot;;

// ...

protected async onInit(): Promise&lt;void&gt; {

  await super.onInit();

  // other init code may be present

  graph.setup({
      graph: {
          fetchClientFactory: MsalClientSetup({
              auth: {
                  authority: &quot;https://login.microsoftonline.com/common&quot;,
                  clientId: &quot;00000000-0000-0000-0000-000000000000&quot;,
             