medusajs / medusa

Building blocks for digital commerce
https://medusajs.com
MIT License
24.95k stars 2.49k forks source link

401 Unauthorized retrieving customer information #6569

Closed QueeNFrisk closed 7 months ago

QueeNFrisk commented 7 months ago

Bug report

Describe the bug

I have just installed and set up Medusa, and I'm using the JS Client with Vue 3. Within my interface, I need to determine if the user is logged in and, if so, display certain information. However, I am encountering an error (Figure 1)

System information

Medusa version (including plugins): 1.20.2 (Figure 2) Node.js version: 20.11.0 Database: 16.2.1 Operating system: Windows 11 23H2 x64 Browser (if relevant): Brave V1.63.165 / Google Chrome V122.0.6261.95

Steps to reproduce the behavior

[ Fresh installation ]

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Within my interface, I need to determine if the user is logged in and, if so, display certain information

Screenshots

image [Figure 1]

image [Figure 2] - Backend package.json

image Frontend medusa-config.js

Code snippets

image I've already tried with and without "Custom Headers"; with http://127.0.0.1:9000 and http://localhost:9000

Additional context

Add any other context about the problem here

olivermrbl commented 7 months ago

Please provide reproducible steps, otherwise we can't help.

QueeNFrisk commented 7 months ago

Medusa new storebackend cd storebackend Medusa develop

Basicaly that.

QueeNFrisk commented 7 months ago

Project deleted