| 232 | it("falls back to `site` for the regional domain and defaults to null", async () => { |
| 233 | const received: Array<{ callbackDomain: string | null }> = []; |
| 234 | const complete = (params: { callbackDomain: string | null }) => { |
| 235 | received.push(params); |
| 236 | return Effect.succeed({ |
| 237 | kind: "oauth2" as const, |
| 238 | accessTokenSecretId: "s", |
| 239 | refreshTokenSecretId: null, |
| 240 | }); |
| 241 | }; |
| 242 | // `site` is the full-origin variant; used only when `domain` is absent. |
| 243 | await Effect.runPromise( |
| 244 | runOAuthCallback<GoogleAuth, never, never>({ |