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

Aperta
#18,888 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
dart, firebase

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Needs Attention platform: web plugin: auth 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

Lingua principale
Dart
Stelle
9.3k
Fork
4.1k
Merge medio
1g 16h
PR unite (30g)
73

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/flutterfire

Tutte le issue di firebase/flutterfire

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.