Set type in auth dict for m.oauth UIA stage (#33344)

* Set `type` in auth dict for `m.oauth` UIA stage

* Update tests
This commit is contained in:
Ginger
2026-05-01 03:08:06 -04:00
committed by GitHub
parent c2e5aa7adc
commit 87d724000e
2 changed files with 2 additions and 2 deletions
@@ -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 {
@@ -96,7 +96,7 @@ describe("<MasUnlockCrossSigningAuthEntry/>", () => {
renderAuth({ submitAuthDict });
fireEvent.click(screen.getByRole("button", { name: "Retry" }));
expect(submitAuthDict).toHaveBeenCalledWith({});
expect(submitAuthDict).toHaveBeenCalledWith({ type: AuthType.OAuth });
});
});