skyturkish / second_hand

An application made with firebase, where users can upload a photo of their products, sell or buy them along with a description and price.
MIT License
10 stars 1 forks source link

When delete user, user's information not delete ??????? #32

Closed skyturkish closed 2 years ago

skyturkish commented 2 years ago
          final userId = AuthService.firebase().currentUser!.id;
          await provider.deleteAccount();

          await ProductCloudFireStoreService.instance.removeAllProductWithImages(
            userId: userId,
          );
          await UserCloudFireStoreService.instance.deleteUser(
            userId: userId,
          );