nss-evening-cohort-11 / WildflowerCoffeeGifts

0 stars 2 forks source link

Purch - Pull userID from new auth setup (in ShoppingCart.js and SingleProductView.js) #130

Closed ancasimon closed 3 years ago

ancasimon commented 3 years ago

User Story As a developer, I want to get the Firebase UID directly from the token passed into the application when the user logs in.

Dev Notes

API

  1. Add the FirebaseEnabledController file Nathan showed us.
  2. Make the Controllers that need to get data by the user ID inherit from this Controller.
  3. Update/write the GetUserIdByUid method in the UsersRepository.
  4. Update all the appropriate methods that currently are based on the user's database ID to get the ID first based on this UID (and pass in the variable from this controller).