HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

adding auth, showing user or guest #225

Closed varsha84 closed 2 years ago

varsha84 commented 2 years ago

Description

This PR is to use auth in cart page using firebase. Since base on shopping cart context functionality implemented by Yones, it is clear now that shopping cart will use the local storage for storing the cart items. hence a user without login can also add the item in his shopping cart with creating any database entry (in order table).
I will update the shopping cart functionality in another PR ( getting shopping cart item from localStorage)

Fixes #226

How to test?

npm run dev go to cart page localhost/cart/4

  1. as authenticated user ( it must show your name and email)
  2. if not authenticated, it only show name as "Guest"

Checklist

netlify[bot] commented 2 years ago

✔️ Deploy Preview for class18-fp-storybook ready!

🔨 Explore the source changes: 7d0b2fc780851196175376c65b118d17343b1180

🔍 Inspect the deploy log: https://app.netlify.com/sites/class18-fp-storybook/deploys/61ad3a9d8869b60007148464

😎 Browse the preview: https://deploy-preview-225--class18-fp-storybook.netlify.app