(authorizeUrl)
| 367 | refreshGrantError = error |
| 368 | }, |
| 369 | async completeAutomaticFlow(authorizeUrl) { |
| 370 | const authorizeResponse = await fetch(authorizeUrl, { redirect: 'manual' }) |
| 371 | const callbackUrl = requireRedirectLocation(authorizeResponse, authorizeUrl) |
| 372 | const callbackResponse = await fetch(callbackUrl, { redirect: 'manual' }) |
| 373 | const successLocation = callbackResponse.headers.get('location') |
| 374 | return { |
| 375 | code: new URL(callbackUrl).searchParams.get('code') ?? '', |
| 376 | state: new URL(callbackUrl).searchParams.get('state') ?? '', |
| 377 | callbackUrl, |
| 378 | successLocation, |
| 379 | } |
| 380 | }, |
| 381 | async completeRelayFlow(authorizeUrl) { |
| 382 | const authorizeResponse = await fetch(authorizeUrl, { redirect: 'manual' }) |
| 383 | const callbackUrl = requireRedirectLocation(authorizeResponse, authorizeUrl) |
nothing calls this directly
no test coverage detected