Skip to content

Commit

Permalink
Wait for Node I/O before exit (#236)
Browse files Browse the repository at this point in the history
Fixes #235
  • Loading branch information
Mikescops authored Apr 19, 2024
1 parent 0d354e3 commit 6baaf40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ program
console.error(errorColor(`error: ${error.message}`));
process.exit(1);
})
.finally(() => process.exit(0));
.finally(() => process.stdout.write('', 'utf-8', () => process.exit(0)));
1 change: 0 additions & 1 deletion src/modules/auth/userPresenceVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const userPresenceVerification = async (params: { deviceConfiguration: De
if (canPromptTouchID()) {
return promptTouchID({
reason: 'validate your identity before accessing your vault',
reuseDuration: 60, // 1min - dies when program closes
}).catch((error) => {
throw new Error(`Touch ID verification failed: ${error}`);
});
Expand Down

0 comments on commit 6baaf40

Please sign in to comment.