Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle popup login errors #3290

Merged
merged 3 commits into from
Sep 12, 2024
Merged

fix: handle popup login errors #3290

merged 3 commits into from
Sep 12, 2024

Conversation

Mnickii
Copy link
Collaborator

@Mnickii Mnickii commented Sep 11, 2024

Closes #3070

PR Type

Bugfix

Description of the changes

Handle errors when user cancels sing-in popup, or tries to login when there's an already existing login process.

PR checklist

  • Project builds (yarn build) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)
  • All public APIs (classes, methods, etc) have been documented following the jsdoc syntax
  • Stories have been added and existing stories have been tested
  • Added appropriate documentation. Docs PR:
  • License header has been added to all new source files (yarn setLicense)
  • Contains NO breaking changes

Other information

How to test: Ensure that you initialize MSAL2 with loginType: LoginType.Popup and first try to login and close the popup, then second click the sign in button multiple times without closing the popup.

@Mnickii Mnickii requested a review from a team as a code owner September 11, 2024 10:14
Copy link

📖 The updated storybook is available here

Copy link

@Mnickii Mnickii merged commit 76a013d into main Sep 12, 2024
11 checks passed
@Mnickii Mnickii deleted the fix/bug-3070 branch September 12, 2024 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] Unhandled Promise rejection in MSal2Provider, when user cancels login flow in Popup
2 participants