firebase / firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
https://firebase.google.com/
Apache License 2.0
4.58k stars 1.06k forks source link

Seems like Microsoft login doesn't work properly anymore #1069

Closed MartinXPN closed 8 months ago

MartinXPN commented 8 months ago

[REQUIRED] Describe your environment

[REQUIRED] Describe the problem

Looks like the Microsoft login doesn't work properly. The user appears on the Firebase console but the React app doesn't receive the credentials and just freezes after the Microsoft pop-up is closed.

Steps to reproduce:

Relevant Code:

// Configure FirebaseUI.
const uiConfig = {
    signInFlow: 'popup',
    signInOptions: [
        GoogleAuthProvider.PROVIDER_ID,
        FacebookAuthProvider.PROVIDER_ID,
        'microsoft.com',
        {
            provider: EmailAuthProvider.PROVIDER_ID,
            requireDisplayName: true,
        },
    ],
    credentialHelper: 'none',
    callbacks: {
        // Avoid redirects after sign-in.
        signInSuccessWithAuthResult: () => false,
    },
};
// All the other sign-in options work fine. Microsoft doesn't. It just freezes with no logs, no errors, no additional info.
MartinXPN commented 8 months ago

Looks like it was caused by a personal VS company Outlook email usage