N0Prob1em / greenwave

https://gwave.vercel.app
0 stars 0 forks source link

View product button should not send you to product/:id. Create new component. #160

Open bulaigeorge opened 1 year ago

bulaigeorge commented 1 year ago

Right now the button sends you to a link, similar to /product/dcd8cde5-2c33-4521-a870-01c78321b316. If the person accessing this link is not logged in, should not have access to Contact owner button. If we ask the person to log in first, it will try to log in from that page which should be one of our redirect links. We cant have this type of redirect links on auth0. There would be too many and not scalable. We need to have a simple /product on auth0. That means we need to have the single product with the information already. Not to fetch the product again from the database. That requires a new component.