From cf797f0bc7c60b5f2af509a86843ea97ffe79213 Mon Sep 17 00:00:00 2001 From: Sam Stern Date: Wed, 4 Apr 2018 16:19:40 -0700 Subject: [PATCH] Update README.md for #1239 --- auth/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth/README.md b/auth/README.md index c037e5138..5e43d8b3d 100644 --- a/auth/README.md +++ b/auth/README.md @@ -365,6 +365,8 @@ see the Firebase Auth documentation to [get the currently signed-in user](https://firebase.google.com/docs/auth/android/manage-users#get_the_currently_signed-in_user) and [register an AuthStateListener](https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuth.html#addAuthStateListener(com.google.firebase.auth.FirebaseAuth.AuthStateListener)). +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. + #### ID tokens To retrieve the ID token that the IDP returned, you can extract an `IdpResponse` from the result