Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

fix(otplease): promisify read #30

Merged
merged 1 commit into from
Nov 19, 2018
Merged
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 lib/utils/otplease.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function otplease (opts, fn) {
}

function readOTP (msg, otp, isRetry) {
const read = require('read')
const read = BB.promisify(require('read'))
if (!msg) {
msg = [
'This command requires a one-time password (OTP) from your authenticator app.',
Expand Down