diff --git a/apps/desktop/src/main/biometric/biometric.darwin.main.ts b/apps/desktop/src/main/biometric/biometric.darwin.main.ts index 5851d39889d..49638425b7b 100644 --- a/apps/desktop/src/main/biometric/biometric.darwin.main.ts +++ b/apps/desktop/src/main/biometric/biometric.darwin.main.ts @@ -13,9 +13,8 @@ export default class BiometricDarwinMain implements BiometricMain { await this.stateService.setBiometricText("unlockWithTouchId"); await this.stateService.setNoAutoPromptBiometricsText("autoPromptTouchId"); - // eslint-disable-next-line - ipcMain.on("biometric", async (event: any, message: any) => { - event.returnValue = await this.authenticateBiometric(); + ipcMain.handle("biometric", async () => { + return await this.authenticateBiometric(); }); }