AOSSIE-Org / AOSSIE-Org/Resonate

Login screen briefly appears for already authenticated users on app launch

Abierto
#750 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
344
Forks
350
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Description

When the app is opened by a user who is already registered and authenticated, the login screen is shown briefly (for ~1–3 seconds) before the app navigates to the authenticated/home screen.

This creates a visible flicker where the login UI appears even though the user is already signed in.

---

### Steps to Reproduce

1. Log in to the app successfully.
2. Close the app completely.
3. Reopen the app.
4. Observe that the login screen appears briefly before redirecting to the main screen.

---

### Expected Behavior

If a valid authenticated session already exists, the app should directly navigate to the authenticated/home screen without showing the login screen.

---

### Actual Behavior

The login screen is rendered first and then replaced by the authenticated screen after a short delay (1–3 seconds).

---

### Possible Cause

Authentication/session state appears to be checked asynchronously after the initial UI is rendered, causing a temporary fallback to the login screen before the auth state is resolved.

---

### Motivation

Improving this flow would provide a smoother user experience and prevent unnecessary UI flicker during app startup.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.