(payload)
| 325 | }); |
| 326 | }, |
| 327 | async handleAuth(payload) { |
| 328 | setSyncState({ status: SYNC_AUTHORIZING }); |
| 329 | try { |
| 330 | await this.finishAuth(payload); |
| 331 | } catch (err) { |
| 332 | setSyncState({ status: SYNC_ERROR_AUTH }); |
| 333 | throw err; |
| 334 | } |
| 335 | setSyncState({ status: SYNC_AUTHORIZED }); |
| 336 | autoSync(); |
| 337 | }, |
| 338 | checkAuth(url) { |
| 339 | const payload = this.matchAuth(url); |
| 340 | if (payload) { |
nothing calls this directly
no test coverage detected