So we're fetching data, writing data,
we're using our token to authenticate ourselves, to get access to restricted resources. We're using the user
ID to scope our products and also to scope our orders.
With that, we have the application which we can see here.
Now one thing I noticed here is that if I login and I go to my admin section, I still don't see the
product I just created. So something's wrong there,
let's check our products
action creator where I fetch the product and where I do the filtering, there I check that the owner ID
on the product I'm looking at is equal to my userId
but yes, here of course I have an error,
I still have my hardcoded owner ID, that owner ID here.
Well that should of course be retrieved from the back-end,
so there for resData key.ownerId, I want to take the owner ID I get from the date I fetch
on Firebase.
So with this change in place,
now if we do this again and we do login again, if I now go to admin, now I see my scarf there.