Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,846 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm currently deploying my (React) web app in a Microsoft Teams custom app. More specifically, I'm trying to use Azure AD SSO to log my users. I'm using the `@microsoft/teams-js` package to generate a login popup window, which works just fine. But when I login inside this popup window, the logged in session in my application is opened in this popup while the main window, inside Microsoft Teams, stays on the login page. If I refresh my custom app, I'm properly logged in though.
Here's how I use the authenticate method when I click the login button :
js
onClick={
isDisplayedInTeams()
? async (): Promise
@Cov_Pr - Please have look into this sample-https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/app-auth/nodejs/src/dialogs/AzureADDialog.ts