Why is my Microsoft Teams custom app staying in the login popup window?

Cov_Pr 0 Reputation points
2023-03-30T15:13:54.91+00:00
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
Microsoft Teams Development
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
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 2,266 Reputation points Microsoft Vendor
    2023-07-25T11:07:03.4566667+00:00
    0 comments No comments