I have been using Firebase for some time in my production app. Recently new firebase was introduced at google event. I decided to upgrade it for my app. I looked at the migration guide: https://firebase.google.com/support/guides/firebase-android and tried following every step. I understood every step but one. Section migrate existing login requires us to refer https://github.com/firebase/firebase-auth-migration-helpers/tree/master/android which says: Whenever you log in a user, call clearLegacyAuth(). This is a precaution to make sure that a user from a legacy SDK never overrides a newer log in.
AuthMigrator.getInstance().clearLegacyAuth();
I am using a custom login for firebase (generating firebase token on my server)
I have updated libs required to generate new firebase token for the upgraded firebase as required.
Server side works fine.
Client side if new app tries login in user, it will do so using new firebase provided libs/ methods.
That leaves me with doubt: when exactly do we need to call the method mentioned in this issue title?
I have been using Firebase for some time in my production app. Recently new firebase was introduced at google event. I decided to upgrade it for my app. I looked at the migration guide: https://firebase.google.com/support/guides/firebase-android and tried following every step. I understood every step but one. Section migrate existing login requires us to refer https://github.com/firebase/firebase-auth-migration-helpers/tree/master/android which says: Whenever you log in a user, call clearLegacyAuth(). This is a precaution to make sure that a user from a legacy SDK never overrides a newer log in. AuthMigrator.getInstance().clearLegacyAuth();
Please help.