From b91b3a421a3ed1909d015ebcba650c2426d7ce38 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Tue, 16 Apr 2024 15:58:10 +0200 Subject: [PATCH] fix(authentication): `authStateChange` listener fires too early on the web (#613) --- .changeset/blue-bats-yell.md | 5 +++++ packages/authentication/src/web.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/blue-bats-yell.md diff --git a/.changeset/blue-bats-yell.md b/.changeset/blue-bats-yell.md new file mode 100644 index 00000000..439af293 --- /dev/null +++ b/.changeset/blue-bats-yell.md @@ -0,0 +1,5 @@ +--- +'@capacitor-firebase/authentication': patch +--- + +fix(web): `authStateChange` listener fires too early diff --git a/packages/authentication/src/web.ts b/packages/authentication/src/web.ts index bf6173c3..21a59857 100644 --- a/packages/authentication/src/web.ts +++ b/packages/authentication/src/web.ts @@ -719,6 +719,7 @@ export class FirebaseAuthenticationWeb this.notifyListeners( FirebaseAuthenticationWeb.AUTH_STATE_CHANGE_EVENT, change, + true, ); }