diff --git a/lib/components/qr-auth-provider.react.js b/lib/components/qr-auth-provider.react.js --- a/lib/components/qr-auth-provider.react.js +++ b/lib/components/qr-auth-provider.react.js @@ -58,7 +58,6 @@ generateAESKey, composeTunnelbrokerQRAuthMessage, parseTunnelbrokerQRAuthMessage, - performBackupRestore, } = props; const [primaryDeviceID, setPrimaryDeviceID] = React.useState(); @@ -124,6 +123,7 @@ deviceID: primaryDeviceID, payload: JSON.stringify(message), }); + setQRAuthFinished(true); })(); }, [ sendMessageToDevice, @@ -168,21 +168,6 @@ return; } - if ( - qrCodeAuthMessage && - qrCodeAuthMessage.type === - qrCodeAuthMessageTypes.BACKUP_DATA_KEY_MESSAGE - ) { - const { backupID, backupDataKey, backupLogDataKey } = qrCodeAuthMessage; - void performBackupRestore?.({ - backupID, - backupDataKey, - backupLogDataKey, - }); - setQRAuthFinished(true); - return; - } - if ( !qrCodeAuthMessage || qrCodeAuthMessage.type !== @@ -203,7 +188,6 @@ performLogIn, setUnauthorizedDeviceID, parseTunnelbrokerQRAuthMessage, - performBackupRestore, ], );