onAuthStateChanged too often running

510 views
Skip to first unread message

Donis

unread,
Jun 3, 2016, 12:28:30 PM6/3/16
to Firebase Google Group
Hi, I'm authentication. I have followed the example of the documentation, I'm authentication "EmailPassword". The problem is that when I create the user, the method onAuthStateChanged runs 4 times and only have to run one

Abe Haskins

unread,
Jun 3, 2016, 1:03:25 PM6/3/16
to Firebase Google Group
Can you confirm that you're only calling onAuthStateChanged(cb) once? If you're doing that multiple times it's likely to be called repeatedly. You could also check the auth data your callback is getting and check if it's different on each call.
Reply all
Reply to author
Forward
0 new messages