#Unauthorized response when log in to admin.

13 messages · Page 1 of 1 (latest)

earnest maple
#

Hi everyone. When I try to log in to admin the command line shows an error message (I'll put a screenshot below). I registered this user in admin and this user data is in supabase db. Please help me understand what could be causing this.

lilac spoke
#

It doesn’t seem that your request is selecting the user id if you look at the from clause

earnest maple
#

@lilac spoke Yes, this is understandable, I'm just new to Medusa and don’t understand where I can find it, check the login function.

lilac spoke
#

I am not on my laptop, but admin/users can be found in src/api/routes/admin/users

earnest maple
#

There is only a user registry, I can’t find where it works with the database when log-in (/auth) is running, to understand the problem with SELECT

lilac spoke
#

The auth route is in the medusa package, same path, but instead of users it will be auth. Also, i can see you have a lot of custom things, you might have broken something ? 🤔

earnest maple
#

I recently switched to this project; people were working on this project before me. Can you tell me what is broken and how I can fix it, please?

lilac spoke
#

I am not on my laptop, the only thing i can see in your ss is that the user id is not selected from the query, therefore the column is not found.

earnest maple
#

Thank you very much, I'll check it now.

#

@lilac spoke If I can’t solve the problem, I'll write here, if it’s convenient for you, help me with this, please?

lilac spoke
#

Only the password hash seems selected from the user table

#

Yes sure you can keep it here 👌 i am on vacay thats why i am not on ly laptop ahah

earnest maple