Closed mdissel closed 2 months ago
please check this documentation about authenticating in a browser outside of M365
Thanks, but I don't need a spfi instance. I need the bearer token
Thanks, so conclusion is, not possible with pnpjs and use the standard flow
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.
What version of PnPjs library you are using
3.x
Minor Version Number
3.24.0
Target environment
All
Additional environment details
standalone html page
Question/Request
In a SPFX/webpart environment we can use this code to fetch an accesstoken for a different azure application:
await (context.aadHttpClientFactory).getClient(clientId)
How can we do this when we have no spfx context and are authenticating in pnpjs like this: