firebaseui-web: Error: INTERNAL ASSERTION FAILED: Pending promise was never set

[REQUIRED] Describe your environment

  • Operating System version: Ubuntu 20.04
  • Browser version: numerous
  • Firebase UI version: 6.0.1
  • Firebase SDK version: numerous

[REQUIRED] Describe the problem

when using the web demo (the demo from this repo), logging in using the microsoft login provider does not complete correctly. the signInSuccessWithAuthResult() callback is never called. instead an error is thrown:

Error: INTERNAL ASSERTION FAILED: Pending promise was never set

Screen Shot 2022-04-06 at 14 33 06

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 27
  • Comments: 41 (1 by maintainers)

Most upvoted comments

I have this problem with SignInWithPopup (Firebase Web SDK v9). The popup pops and 3s later it closes with this error message:

Uncaught (in promise) FirebaseError: Firebase: Error (auth/popup-closed-by-user).

then about 8s later on this error message shows in the console:

@firebase/auth: Auth (9.15.0): INTERNAL ASSERTION FAILED: Pending promise was never set

What’s weird is that the Sign in seems to work as I am able to catch the user information in the onAuthStateChanged listener. But is not persisted between refreshes.

I had a similar problem, and it was because I was using the ip 127.0.0.1 and it did not belong to an authorized domain. I changed to localhost and it worked again. You can go to the firebase configuration, and check the authorized domains. Hope this can help you

I have this problem with SignInWithPopup (Firebase Web SDK v9). The popup pops and 3s later it closes with this error message:

Uncaught (in promise) FirebaseError: Firebase: Error (auth/popup-closed-by-user).

then about 8s later on this error message shows in the console:

@firebase/auth: Auth (9.15.0): INTERNAL ASSERTION FAILED: Pending promise was never set

What’s weird is that the Sign in seems to work as I am able to catch the user information in the onAuthStateChanged listener. But is not persisted between refreshes.