diff --git a/nix/package.nix b/nix/package.nix index 8c01ad24..ae9b6c50 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -79,7 +79,7 @@ in ; fetcherVersion = 2; - hash = "sha256-h2nnwmjGnjxefq6KflaKgIH0HWPcyRvn6rxslwbYuwo="; + hash = "sha256-GlgQuPpOibPrItt6X9EqV4QmCOyajZh5yy7gHh+O+ME="; }; buildPhase = '' diff --git a/src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/components/MfaMobileApprove/MfaMobileApprove.tsx b/src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/components/MfaMobileApprove/MfaMobileApprove.tsx index ac098e12..e4870037 100644 --- a/src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/components/MfaMobileApprove/MfaMobileApprove.tsx +++ b/src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/components/MfaMobileApprove/MfaMobileApprove.tsx @@ -9,6 +9,7 @@ import { clientApi } from '../../../../../../../../clientAPI/clientApi'; import type { CommonWireguardFields } from '../../../../../../../../types'; import { useMFAModal } from '../../useMFAModal'; import './style.scss'; +import { debug, error } from '@tauri-apps/plugin-log'; import { Button } from '../../../../../../../../../../shared/defguard-ui/components/Layout/Button/Button'; import { MessageBox } from '../../../../../../../../../../shared/defguard-ui/components/Layout/MessageBox/MessageBox'; @@ -51,6 +52,17 @@ export const MfaMobileApprove = ({ queryParams: { token, }, + onClose: () => { + debug('WebSocket connection to proxy for mobile app MFA closed.'); + }, + onError: () => { + toaster.error('Unexpected error in WebSocket connection to proxy'); + error( + 'MFA auth using mobile app failed. Unexpected error in WebSocket connection to proxy.', + ); + // go back to previous step + onCancel(); + }, }); const qrString = useMemo(() => {