| 343 | it("falls back to `site` for the regional domain and defaults to null", async () => { |
| 344 | const received: Array<{ callbackDomain: string | null }> = []; |
| 345 | const complete = (params: { callbackDomain: string | null }) => { |
| 346 | received.push(params); |
| 347 | return Effect.succeed({ |
| 348 | kind: "oauth2" as const, |
| 349 | accessTokenSecretId: "s", |
| 350 | refreshTokenSecretId: null, |
| 351 | }); |
| 352 | }; |
| 353 | // `site` is the full-origin variant; used only when `domain` is absent. |
| 354 | await Effect.runPromise( |
| 355 | runOAuthCallback<GoogleAuth, never, never>({ |