sikwong2 / amazon

0 stars 0 forks source link

Shopper app/browser history #62 #141

Closed 6YuQing6 closed 3 months ago

6YuQing6 commented 3 months ago

Created browser history for logged out users and logged in users. Logged out users have browser history stored in the BrowserHistory Context, and logged in users have browser history stored in the backend. Logging in after being logged out will merge all previous browser history stored in local storage into the user's account.

**NOTE: merging will add productIds with the timestamp the user logs in with, although there is a separate timestamp stored in local context. this is bc i forgot to implement the POST endpoint to take in a timestamp query.... will fix later

Backend

** All these endpoints are in graphql member folder as:

Frontend