const user = { id: 1, first_name: "John", last_name: "Doe" }; localStorage.setItem("user", JSON.stringify(user));