()
| 2 | |
| 3 | // Check if lastError is empty dict and clear it if not empty. |
| 4 | async function clearLastError(): Promise<void> { |
| 5 | const lastError = await getStorageItem('lastError'); |
| 6 | if (lastError && Object.keys(lastError).length === 0) { |
| 7 | await setStorageItem('lastError', {}); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | export async function loggedOut(): Promise<void> { |
| 12 | await Promise.all([ |
no test coverage detected