@microsoft/microsoft-graph-client 3.0 has a client object that is instantiated with MSAL in all the examples.
But SPFx has a client too that can be instantiated using the current session by using
import { MSGraphClient as SPFxGraphClient } from '@microsoft/sp-http';
const client: SPFxGraphClient = await context.msGraphClientFactory.getClient();
I tried to use this client with microsoft-graph-client methods but they are not compatible.
Is there a way to cast SPFxGraphClient to the one in microsoft-graph-client?
Thank you.