I am creating a browser extension. I want to store user credential somewhere so that he don't have to input them again and again.
button.addEventListener("click", function () {
let inputVal = document.getElementById("input").value;
if (inputVal === "ramo") {
text.style.display = "none";
chrome.tabs.update({ url: "https://www.youtube.com" });
} else {
toggleText();
}
});
I am getting user input password in inputVal
.. Now I want to store it . How to proceed further?