SPFX ms graph authorization Error in SharePoint Mobile App
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [X] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [X] mobile (iOS/iPadOS)
- [X] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- browser version
- SPFx version
- Node.js version
- etc
Describe the bug / error
When using SPFX with microsft graph msGraphClientFactory , has stopped working in sharepoint mobile app
Steps to reproduce
1.Create a spfx webpart part using ms graph and add it to sharepoint page. and open it in an app 2. 3.
Expected behavior
the webpart should also load in the app
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@harshdamaniahd , thanks for the feedback. Just to be sure we properly capture the scenario: if you log in to SharePoint on a browser first and then try to open the page in SPMobile with the same user, does the error still persist?
@lucabandMSFT I have the same issue only with the AadHttpClient using SPFx v1.11.0 on mobile Teams App. It used to work, but stopped working I think two weeks ago or something. I don't know how to get any error information from the mobile App. So hard to see what is happening. I just logged into SharePoint from iOS Safari with the same account, restarted Teams app, but no luck. It all works from desktop and web.
@rfjschouten, thanks. I know Teams mobile had some regressions and were pushing a fix to resolve that back. I think the fix should be deployed 100% in production by end of October.
@lucabandMSFT I will monitor if things start to work again. Will this require a new version of the mobile Teams App or is this something in the backend? We are in the process of delivering an SPFx personal Teams App for students. Good to know if they need the newest client, so we can communicate.
yes: my understanding is that it will require an update on the Mobile bits. Out of curiosity: do you know what version are you currently running?

I checked for updates, but no new version available.
@rfjschouten, just did couple of checks on our side.
Can you please navigate back to the API Access page in the SharePoint tenant Admin with an account that has AAD Global Admin rights and then navigate back on the Mobile to see if the error still occurs?
Thanks!
@lucabandMSFT I double checked if I was a Global Admin at the client instead of maybe only a SharePoint Admin. I am a Global Admin, check one. Then I navigated to API Access page (I already did this earlier this week and last week) and now the external API can be accessed from Teams Mobile App! I double checked also desktop and Web clients and they still work as before. Thank you Luca, client will be happy!
For others, do you always have to navigate to API Access page, or is this procedure done automatically by Microsoft?
@rfjschouten, glad to hear that. I"m going to close this issue now.
As per your question: navigating to the API access page (beside for approving new API requests), should be an operation that is rarely required. And, for security reasons, only the Global Admin for the tenant can do that.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues