mercurjs / mercur

JavaScript Open Source
Multi-Vendor Marketplace Accelerator build on top of Medusa.js. Mercur simplifies the path to your own customized, multi-vendor marketplace.
https://mercurjs.com
MIT License
153 stars 15 forks source link

installation issues on mac localhost, storefront works, admin and vendor cannot login 401 unauthorized Please Help 🙏 #9

Closed altermod closed 3 months ago

altermod commented 3 months ago

I was able to get all four servers up and running. The front-end store connectivity to the api works fine. But the Admin and Vendors are having 401 errors on the backend. I followed all the instructions

Here is the output on the api for a login request from the admin login image

I would appreciate any help on figuring out why I cannot authenticate with admin and vendor front-ends to the api.

The admin and vendor .env files are like so image

The api .env file is like so image

Like I said I seeded the database and the store front-end works. I was able to create a customer as well. image

There was one particular tweak I had to make to the api folder api/.eslintrc.js file tho, for the parseOptions I had to change project from 'tsconfig.json' to 'api/tsconfig.json' image

That was because there were some path errors for users.ts if I didn't add the api to the path. image