MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / set

Method set

src/modules/pwdCache.js:96–105  ·  view source on GitHub ↗
(fpr, entry, initAlarm)

Source from the content-addressed store, hash-verified

94 }
95
96 async set(fpr, entry, initAlarm) {
97 super.set(fpr, entry);
98 const {key, tlOperations, tlTimer, ...sessionEntry} = entry;
99 const session = await this.getSession();
100 session[fpr] = sessionEntry;
101 await chrome.storage.session.set({[PWD_SESSION_KEY]: session});
102 if (initAlarm) {
103 chrome.alarms.create(`${PWD_ALARM_PREFIX}${fpr}`, {delayInMinutes: timeout});
104 }
105 }
106}
107
108export function init() {

Callers 14

initFunction · 0.45
autocryptFunction · 0.45
initMethod · 0.45
putMethod · 0.45
storeKeysMethod · 0.45
setWatchListFunction · 0.45
setPreferencesFunction · 0.45
setSessionPrefFunction · 0.45
unauthorizeFunction · 0.45
storeAuthDataFunction · 0.45
initMethod · 0.45
deleteMethod · 0.45

Calls 2

getSessionMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected