Forum Discussion
Teams custom personal app (SPFx) - slow authentication startup in desktop app
Hi
We've implemented quite some Teams personal apps at clients now and the custom Teams apps in the (Teams desktop app) sometimes have load times ranging from 4s - 10s before our custom code even begins. The Teams web app handles auth in a different way, so never any issue there.
It appears to have something to do with the way authentication is done in the desktop app (acquire OBO token call...). With a trick, you can also get the console & network tab to show in the desktop app. That way we can verify when our React is loaded & starting + when our backend api calls are done.
Clients are complaining about the response times and rightfully so. The response times before our code hits also varies greatly between tenants as mentioned.
Has anyone had the same experience? Is there a magic wonder solution out there that I don't know of yet (e.g. simple AAD authentication setting) ?
- Ruben Toribio GallardoCopper Contributor
pieterheemeryck We are experiencing the same problem , the api in azure takes like 200 ms . The time it takes the app to load is more than 5 secs. After checking loading time with developer tools you can see that authenticate method takes like 2-3 secs. Any idea how it can be optimized VesaJuvonen ?
It's a bit sad that we spend a lot of time in make our systems as fast as possible and later SharePoint is making it slow. The question is if this authentication is related with SharePoint or azure ad , if we call an internal api from SharePoint will be faster or will be slow anyways.
- tehreemfCopper ContributorWas anyone of you able to find a solution to this? I'm facing the same problem. The app takes too much time to load..