Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ in
;

fetcherVersion = 2;
hash = "sha256-h2nnwmjGnjxefq6KflaKgIH0HWPcyRvn6rxslwbYuwo=";
hash = "sha256-GlgQuPpOibPrItt6X9EqV4QmCOyajZh5yy7gHh+O+ME=";
};

buildPhase = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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(() => {
Expand Down