microsoft-graph-toolkit
microsoft-graph-toolkit copied to clipboard
[BUG] mgt-login not signing in, in Team Desktop client. Uncaught (in promise) undefined.
Describe the bug I'm using the Microsoft Graph Toolkit Login React component in a Microsoft Teams Tab. And the Teams desktop client behaves differently than the Teams web client. See screenshots below. The desktop client doens't have the loginFailed/loginCompleted events when the signin popup closes and stays on the sign in button. But when i refresh the page it changes to the person card, and i'm signed in. Also i see an "Uncaught (in promise) undefined in string.ts.10.
To Reproduce
- git code : https://github.com/StanDEV1234340t98/testauthentication
- in the index.js add a clientId
- use ngrok to host the code and open the page in a teams tab.
- try to sign in.
Expected behavior I would expect the desktop client would behave the same as the web client.
Screenshots
Web client
Desktop client
Environment (please complete the following information): Browser: Chrome, teams.microsoft.com Desktop: Windows, Microsoft Teams client, Version 1.5.00.9567 (64-bit).
Hello StanDEV1234340t98, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
Hello @StanDEV1234340t98, I'm trying to reproduce this. In the meantime, is there any particular reason you're not using TeamsMsal2Provider
?
I would highly advise to use the TeamsMsal2Provider
as it handle all this beautiful magic for you!
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.