BrowserAuthError: user_cancelled: User cancelled the flow.

mozzla 5 Reputation points
2023-06-08T10:37:19.1766667+00:00

When I click on login and close the pop-up window that pops up, the following error will appear:

User's image

User's image

I want to know what caused this error. Is this error the reason why the loginFailed callback did not execute? And how to solve it thank you!!!

Here is my code and version used:

import { Login, FileList } from '@microsoft/mgt-react'

<Login ref={this.mstRef} 
loginInitiated={e => console.log("login initiated", e)} 
loginFailed={this.MSloginFailed} 
loginCompleted={(e)=> void this.loginCompleted(e)}/>



"@microsoft/mgt-element": "^2.10.1",
"@microsoft/mgt-msal2-provider": "^2.10.1",
"@microsoft/mgt-react": "^2.10.1"
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,894 questions
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.
3,808 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,185 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.