From 87d724000e2db353c9fcd679ef48786106c5a208 Mon Sep 17 00:00:00 2001 From: Ginger Date: Fri, 1 May 2026 03:08:06 -0400 Subject: [PATCH] Set `type` in auth dict for `m.oauth` UIA stage (#33344) * Set `type` in auth dict for `m.oauth` UIA stage * Update tests --- .../components/views/auth/InteractiveAuthEntryComponents.tsx | 2 +- .../views/auth/InteractiveAuthEntryComponents-test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/views/auth/InteractiveAuthEntryComponents.tsx b/apps/web/src/components/views/auth/InteractiveAuthEntryComponents.tsx index edd44019ba..5e5b163b7a 100644 --- a/apps/web/src/components/views/auth/InteractiveAuthEntryComponents.tsx +++ b/apps/web/src/components/views/auth/InteractiveAuthEntryComponents.tsx @@ -970,7 +970,7 @@ export class MasUnlockCrossSigningAuthEntry extends FallbackAuthEntry<{ }; private onRetryClick = (): void => { - this.props.submitAuthDict({}); + this.props.submitAuthDict({ type: MasUnlockCrossSigningAuthEntry.LOGIN_TYPE }); }; public render(): React.ReactNode { diff --git a/apps/web/test/unit-tests/components/views/auth/InteractiveAuthEntryComponents-test.tsx b/apps/web/test/unit-tests/components/views/auth/InteractiveAuthEntryComponents-test.tsx index 485f8e077b..d8f3d918ac 100644 --- a/apps/web/test/unit-tests/components/views/auth/InteractiveAuthEntryComponents-test.tsx +++ b/apps/web/test/unit-tests/components/views/auth/InteractiveAuthEntryComponents-test.tsx @@ -96,7 +96,7 @@ describe("", () => { renderAuth({ submitAuthDict }); fireEvent.click(screen.getByRole("button", { name: "Retry" })); - expect(submitAuthDict).toHaveBeenCalledWith({}); + expect(submitAuthDict).toHaveBeenCalledWith({ type: AuthType.OAuth }); }); });