| 243 | it("falls back to `site` for the regional domain and defaults to null", async () => { |
| 244 | const received: Array<{ callbackDomain: string | null }> = []; |
| 245 | const complete = (params: { callbackDomain: string | null }) => { |
| 246 | received.push(params); |
| 247 | return Effect.succeed({ |
| 248 | kind: "oauth2" as const, |
| 249 | accessTokenSecretId: "s", |
| 250 | refreshTokenSecretId: null, |
| 251 | }); |
| 252 | }; |
| 253 | // `site` is the full-origin variant; used only when `domain` is absent. |
| 254 | await Effect.runPromise( |
| 255 | runOAuthCallback<GoogleAuth, never, never>({ |