588 viewsNext Amazona
0 Comments

Hi Basir, when I tried logging the user credentials, the react-toastify is showing the “Client must be connected before running operations”, the in my console the error there is showing this “Failed to load resource: the server responded with a status of 401 (Unauthorized)”. the line of this error is coming from api/auth/callback/credentials?:1

From the next-tailwind-amazona project, I’m on Video-14-Create-Login-API

Bassir Answered question March 9, 2023

for 401 error it means that you enter invalid user or password.

check this API to see what you pass as email and password to the backend.

https://github.com/basir/next-tailwind-amazona/blob/main/pages/api/auth/%5B…nextauth%5D.js#L30

Bassir Answered question March 9, 2023