You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
// initimportfirebasefrom'firebase/compat/app';import'firebase/compat/auth';import*asfirebaseuifrom'firebaseui';importssoCfgfrom'./sso.config.json'// initialise firebase firstfirebase.initializeApp(ssoCfg.firebase);// then configure the sso uiuiConfig={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)returntrue;}}};// Initialize the FirebaseUI Widget using Firebase.uiSingleton=newfirebaseui.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:
Here's a guide with best practices for using redirect sign-ins on browsers that block third-party cookies: https://firebase.google.com/docs/auth/web/redirect-best-practices. These should all work with FirebaseUI, but if they don't, please follow up in this issue.
Oh, so it's nothing new. I wonder if I could find it earlier somehow.
But thanks!
Currently change to popup, as it was kinda incident on my side. Just released the Firebase loging system instead the old one and people could nto log in via iOS.
popup works for now, but if popups are blocked, gonna need to adjust, so thanks! :)
[REQUIRED] Describe your environment
[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:
then started like so:
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
The text was updated successfully, but these errors were encountered: