firebaseui-web-react icon indicating copy to clipboard operation
firebaseui-web-react copied to clipboard

SignInOptions do not render on sign-in screen when logging out after making API call

Open j-low opened this issue 7 years ago • 4 comments

I am building an app using the react web UI and I've run into a very strange issue: whenever I logout of my app after I perform some type of API call (in this case, just a simple CRUD operation to the DB or uploading a photo to storage) I return to the sign-in screen however the signInOptions don't render via `<FirebaseAuth ... />.

If I logout without making any API call, the FirebaseAuth component and signInOptions render normally.

In both cases the uiConfig and app.auth are being passed properly to <FirebaseAuth ... />. I have no idea what to make of this.

If it helps, here is my auth screen component:

import * as React from 'react';
import * as firebaseui from 'firebaseui';
import * as firebase from 'firebase/app';
import FirebaseAuth from 'react-firebaseui/FirebaseAuth';
import * as app from '@/app';

class Authenticate extends React.Component<any, any> {
  render() {
    const uiConfig = {
      signInSuccessUrl: '/',
      signInOptions: [
        firebase.auth.EmailAuthProvider.PROVIDER_ID,
        firebase.auth.GoogleAuthProvider.PROVIDER_ID
      ],
      credentialHelper: firebaseui.auth.CredentialHelper.NONE
    }

    return  <div className="section authenticate">
              <FirebaseAuth uiConfig={uiConfig} firebaseAuth={app.auth}/>
            </div>; 
  }
}

export default Authenticate;

j-low avatar Oct 19 '18 03:10 j-low

Any insights on this?

j-low avatar Oct 26 '18 22:10 j-low

Did anyone ever figure this out? I'm still having an issue where after logging in and then subsequently logging out, the social auth buttons are no longer being rendered to the screen.

metipton avatar Jan 16 '20 18:01 metipton

still face issue

ronniebhatt1997 avatar Aug 28 '20 12:08 ronniebhatt1997

Can anyone address this from the maintainers?

croraf avatar Dec 04 '20 20:12 croraf