(email, data)
| 372 | } |
| 373 | |
| 374 | async 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 | |
| 384 | async function fetchJSON(resource, options) { |
| 385 | const response = await fetch(resource, options); |
no test coverage detected