What do you want to happen?
I want a registered user to be logging in when they click the register button.
What is actually happening?
When I click the register button it is making a post to the database. It also does also call the log in saga function and transfer the payload to the login in saga. It doesn't not route the user to view the protected routes for a logged in user.
I followed the code from where the dispatch to registered occurs and looked at the register saga and the log in saga. I did also look at the server side code to see what the response is after registration. I did not see why user is not routed to log in.
I think the issues is with how saga is receiving the registered user data.
Description
Your Real Name Zeyini
What do you want to happen? I want a registered user to be logging in when they click the register button. What is actually happening? When I click the register button it is making a post to the database. It also does also call the log in saga function and transfer the payload to the login in saga. It doesn't not route the user to view the protected routes for a logged in user.
Screenshots / Code Snippets
![image](https://github.com/PrimeAcademy/bisca yne-syllabus/assets/147965678/7082dddc-2379-4fc7-9a96-a55dc18c576b)
login.saga.js:18 POST http://localhost:5173/api/user/login 400 (Bad Request)
What did you try? Who did you ask?
I followed the code from where the dispatch to registered occurs and looked at the register saga and the log in saga. I did also look at the server side code to see what the response is after registration. I did not see why user is not routed to log in.
I think the issues is with how saga is receiving the registered user data.
What branch is your code on? Did you git push?
I am o feature/registerfrom branch.
👍
When was the last time you took a break?
I took a break by going to sleep last night . 😃