MCPcopy
hub / github.com/mailvelope/mailvelope / update

Function update

src/modules/pwdCache.js:124–137  ·  view source on GitHub ↗
(before, after)

Source from the content-addressed store, hash-verified

122}
123
124function update(before, after) {
125 if (!after.security) {
126 return;
127 }
128 after.security.password_timeout ??= timeout;
129 if (active != after.security.password_cache ||
130 timeout != after.security.password_timeout) {
131 // init cache
132 clearIntervals();
133 cache.clear();
134 active = after.security.password_cache;
135 timeout = after.security.password_timeout;
136 }
137}
138
139/**
140 * Get password and unlocked key from cache

Callers

nothing calls this directly

Calls 2

clearIntervalsFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected