AOSSIE-Org / AOSSIE-Org/Resonate

Login screen briefly appears for already authenticated users on app launch

オープン
#750 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
344
フォーク
350
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。