Open
Description
[REQUIRED] Describe your environment
- Operating System version: dev: macOS, hosted: Debian on Cloud Run
- Browser version: Chrome 121.0.6167.184
- Firebase UI version: 6.1.0
- Firebase SDK version: 10.8.0
[REQUIRED] Describe the problem
Related to this: https://goo.gle/3pcd-dev-issue
Steps to reproduce:
When attempting to sign-in via Google (though I suspect this will happen with any other provider), the redirect attempts to set cookies which are blocked, preventing the log-in process from working.
Relevant Code:
// init
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import * as firebaseui from 'firebaseui';
import ssoCfg from './sso.config.json'
// initialise firebase first
firebase.initializeApp(ssoCfg.firebase);
// then configure the sso ui
uiConfig = {
signInSuccessUrl: import.meta.env.PROD ? `https://${ssoCfg.firebase.authDomain}/` : `http://localhost:8080/`,
signInOptions: [
firebase.auth.GoogleAuthProvider.PROVIDER_ID
],
credentialHelper: firebaseui.auth.CredentialHelper.GOOGLE_YOLO,
callbacks: {
signInSuccessWithAuthResult: function(authResult, redirectUrl) {
console.log('CALLBACK:', JSON.stringify(authResult), redirectUrl)
return true;
}
}
};
// Initialize the FirebaseUI Widget using Firebase.
uiSingleton = new firebaseui.auth.AuthUI(firebase.auth());
then started like so:
uiSingleton.start(cssQuery, uiConfig);
Initial UI works:

but when clicked, you are signed in, redirected back to an error:

Set via: https://apis.google.com/js/api.js?onload=__iframefcb297111

Metadata
Metadata
Assignees
Labels
No labels