I’m trying to make a Authentication using RTK Query but im getting a parse error. I wonder if anyone can see my error
So this is my apiSlice
https://i.sstatic.net/KSWJpYGy.png
Here is where i use it
(https://i.sstatic.net/GfNIRWQE.png)
I don’t think the error is in the backend since it works on Postman, but i can provide the backend as well
(https://i.sstatic.net/1NzNM03L.png)
I tracked my errors to see if I can see a connection, but nothing until now.
First I put the wrong email, and it says “user not found”(thats fine)
[(https://i.sstatic.net/xGOfhDiI.png)
Then I put the right email, but the wrong password, it says “incorrect password”(thats fine)
(https://i.sstatic.net/CUhbUlkr.png)
Finally I put everything right and getting “PARSING_ERROR”(thats the problem)
(https://i.sstatic.net/UmgVc47E.png)
So i tried to track the error but didn’t see nothing wrong with it
1