giociudadano / Chime

A mobile application that allows sellers to create menus and allow buyers to order from businesses. Features custom seller tools that aim to help small businesses grow.
https://play.google.com/store/apps/details?id=com.giociudadano.cmsc198.cmsc198
1 stars 0 forks source link

FirebaseAuth and FirebaseDatabase desync on account creation #1

Closed giociudadano closed 11 months ago

giociudadano commented 1 year ago

Description

When an account is created, FirebaseAuth (used for storing emails and passwords) can succeed while FirebaseDatabase (used for storing user profiles) can potentially fail, creating a desync between systems.

Reproduction URL

None

Reproduction Steps

  1. Create a new account using Credentials or OAuth
  2. FirebaseAuth writes successfully (email and password in )
  3. FirebaseDatabase writes unsuccessfully (user profile not in Users table)
  4. DesyncError - program still runs successfully but may cause future errors

Potential Solutions

System

Android/iOS/Chromium