Skip to content

Commit f15b36f

Browse files
authored
Update README.md for #1239 (#1244)
1 parent 6a86d99 commit f15b36f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auth/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ see the Firebase Auth documentation to
365365
[get the currently signed-in user](https://firebase.google.com/docs/auth/android/manage-users#get_the_currently_signed-in_user)
366366
and [register an AuthStateListener](https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuth.html#addAuthStateListener(com.google.firebase.auth.FirebaseAuth.AuthStateListener)).
367367

368+
Note: if you choose to use an `AuthStateListener`, make sure to unregister it before launching the FirebaseUI flow and re-register it after the flow returns. FirebaseUI performs auth operations internally which may trigger the listener before the flow is complete.
369+
368370
#### ID tokens
369371

370372
To retrieve the ID token that the IDP returned, you can extract an `IdpResponse` from the result

0 commit comments

Comments
 (0)