oijusti / react-native-firebaseui-auth

Easily add sign-in to your React Native app with FirebaseUI
MIT License
43 stars 10 forks source link

Add configuration option to allow auto upgrade of anonymous users #42

Closed mjsirisha88 closed 2 years ago

mjsirisha88 commented 2 years ago

Issue Description: Anonymous users auto upgrade is not working.

Steps to reproduce:

  1. Enable Anonymous login in the config
  2. Login with anonymous user/continue as guest
  3. Attempt to upgrade or sign in with permanent account
  4. New user account with permanent account details is created and old anonymous user progress is lost(but the anonymous user remains in Auth)

Feature Enhancement: Expose a configuration option autoUpgradeAnonymousUsers to allow the anonymous user linking to the permanent account

Reference: https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#enabling-anonymous-user-upgrade https://github.com/firebase/FirebaseUI-iOS/tree/master/FirebaseAuthUI#handling-auto-upgrade-of-anonymous-users

oijusti commented 2 years ago

@mjsirisha88 changes will be in the next release version 1.3.46 Thanks for contributing!