I am making a Chrome extension where I will store the password from the user in local storage. I am storing it in popup.js
using
chrome.storage.local["mykey"] = "xxx";
When I use chrome.storage.local["mykey"]
, I'm getting undefined
. Can you tell me how to store and retrieve user data in a Chrome extension?