iiitl / MERN_AUTH

MERN Task with auth application
0 stars 8 forks source link

#3: Fix user session #21

Closed piyushkumar079 closed 7 months ago

piyushkumar079 commented 8 months ago

https://github.com/iiitl/MERN_AUTH/issues/3 A single line added in useLogin.js file fixed the issue localStorage.setItem("user", JSON.stringify(json)); storing the data in localStorage below is the video

https://github.com/iiitl/MERN_AUTH/assets/143178077/38f28cbd-4992-4d5d-8aeb-3c8c558a6537

Now I have created a separate branch to solve the issue thanks for the guidance

Yash7426 commented 7 months ago

Great job, @piyushkumar079! You should also consider saving user sessions during the signup process.