This commit is contained in:
7w1 committed 2026-07-25 17:10:13 -05:00
1 parent f05a11db42
commit 46b8018af3
2 files changed
+5 -4

No files matched your search

@@ -76,7 +76,7 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O
return;
}
window.open(url, '_blank');
}, [authMetadata, accountManagementActions]);
}, [authMetadata, accountManagementActions, mx]);
const handleDeleteOIDC = useCallback(
(deviceId: string) => {
@@ -95,7 +95,7 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O
}
window.open(url, '_blank');
},
[authMetadata, accountManagementActions]
[authMetadata, accountManagementActions, mx]
);
const handleToggleDelete = useCallback((deviceId: string) => {
+3 -2
View File
@@ -131,7 +131,8 @@ export function Login() {
? (oidcErrorDescription ?? `Sign-in was not completed (${oidcError}).`)
: undefined;
const showOidc = isUsableOAuthMetadata(authMetadata);
const oidcMetadata = isUsableOAuthMetadata(authMetadata) ? authMetadata : undefined;
const showOidc = oidcMetadata !== undefined;
const hidePassword = hideUsernamePasswordFields;
const showPassword = !hidePassword && parsedFlows.password !== undefined;
const showLegacySso = parsedFlows.sso !== undefined;
@@ -152,7 +153,7 @@ export function Login() {
{showOidc && (
<>
<OidcLoginButton
authMetadata={authMetadata}
authMetadata={oidcMetadata}
homeserverUrl={baseUrl}
redirectUri={oidcRedirectUri}
label={`Continue with ${server}`}