firebase / firebase/firebaseui-web-react
SignInOptions do not render on sign-in screen when logging out after making API call
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.3k
- Forks
- 246
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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 `.
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 ``. 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 {
render() {
const uiConfig = {
signInSuccessUrl: '/',
signInOptions: [
firebase.auth.EmailAuthProvider.PROVIDER_ID,
firebase.auth.GoogleAuthProvider.PROVIDER_ID
],
credentialHelper: firebaseui.auth.CredentialHelper.NONE
}
return
}
}
export default Authenticate;
```
Guía de contribución
Línea de trabajo
Comienza reproduciendo el flujo de logout descrito en el Authenticate component y compara el logout después de una llamada a la API con el logout antes de cualquier llamada a la API. Inspecciona cómo FirebaseAuth gestiona el remounting y las opciones de sign-in después de cambios en el estado de autenticación; la tarea está terminada cuando las opciones configuradas se renderizan en ambos casos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, react
- Área
- authentication, frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100