[FirebaseAuth]: Reopen, Again (2): Emulator in development doesn't work after logged in / Loading use from session storage..

オープン
#18,888 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
dart, firebase

調査の方向性

Start by reading the linked prior issues #11534 and #18689 and the fix in PR #18690, then trace the useAuthEmulator path mentioned here, especially the origin == emulatorOrigin check and its session-storage inputs. Reproduce on Flutter Web with the Auth emulator, reload after logging in, and check whether it connects to the emulator without clearing browser storage.

索引モデルが issue の本文から書いたものです。

説明

Needs Attention type: bug
Is there an existing issue for this?
  • I have searched the existing issues.
Which plugins are affected?

Auth

Which platforms are affected?

Web

Description

In the past I've created this issue: https://github.com/firebase/flutterfire/issues/11534 , which apparently the cause was this: https://github.com/firebase/flutterfire/issues/11233.

It then got re-opened, so I created this: https://github.com/firebase/flutterfire/issues/18689 , which was fixed by: https://github.com/firebase/flutterfire/pull/18690 . Sadly it's still an issue though. I verified in the changelog the fix should be in with the version I'm using:

FIX(auth,web): connect Auth emulator after reload when sessionStorage already has the origin (https://github.com/firebase/flutterfire/issues/18690). ([3740a2da](https://github.com/firebase/flutterfire/commit/3740a2da18d1b119fb897dd4f2c8951127f03ea6))

I have tested now and it reproduced, and while I was trying to talk to local emulators, it kept talking to prod. I could notice the following while debugging: The call to useAuthEmulator skipped due to the condition if (origin == emulatorOrigin) {, which evaluated to true.

Anyway after clearing storage data through browser "inspect" -> Application, it worked. so the problem has apparently re-surfaced.

Reproducing the issue

See previous issue - it's the same thing.

Firebase Core version

5.1.0

Flutter Version

3.47.2

Relevant Log Output

Flutter dependencies
Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

主要言語
Dart
スター
9.3k
フォーク
4.1k
平均マージ
1日 14時間
マージ済み PR(30日)
78

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/flutterfire のほかの issue

firebase/flutterfire の issue をすべて見る

似ている issue

Dart の issue をもっと見る

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

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