I am trying to save Cookie in my client-side browser in mern
Frontend: import axios from “axios”; import { useContext, useRef } from “react”; import { useNavigate } from “react-router-dom”; import { BlogsUserStore } from “../store/blogs-user-store”; const Signin = () => { const oldEmail = useRef(“”); const oldPassword = useRef(“”); const navigate = useNavigate(); const { setUser, notifySuccess, notifyError, api } = useContext(BlogsUserStore); console.log(api); const handleSubmit = […]