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

Function storeAuthData

src/modules/gmail.js:374–382  ·  view source on GitHub ↗
(email, data)

Source from the content-addressed store, hash-verified

372}
373
374async function storeAuthData(email, data) {
375 let entries = await mvelo.storage.get(GOOGLE_OAUTH_STORE);
376 if (entries) {
377 entries[email] = {...entries[email], ...data};
378 } else {
379 entries = {[email]: data};
380 }
381 return mvelo.storage.set(GOOGLE_OAUTH_STORE, entries);
382}
383
384async function fetchJSON(resource, options) {
385 const response = await fetch(resource, options);

Callers 3

getAccessTokenFunction · 0.85
checkLicenseFunction · 0.85
authorizeFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected