In SPFx, how can i fetch the access Token for a guestUser(preferably using MSAL). Where User access SPO environment using live or microsoft account

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/280415

  •  08-02-2021
  •  | 
  •  

Question

i tried with below code using aadTokenProviderFactory in spfx but it fails for the externaluser.

this.context.aadTokenProviderFactory.getTokenProvider().then(aadTokenProvider =>{
                aadTokenProvider.getToken("https://graph.microsoft.com").then(response=>{
                    console.log(response);

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top