mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
lint
This commit is contained in:
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) => {
|
||||
|
||||
@@ -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}`}
|
||||
|
||||
Reference in new issue
Block a user