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, ); }