Skip to content

Commit b1a8729

Browse files
bakkotzkat
authored andcommittedAug 29, 2018
docs: mention --otp flag when prompting for OTP (#60)
PR-URL: #60 Credit: @bakkot Reviewed-By: @zkat
1 parent 59e5056 commit b1a8729

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lib/utils/read-user-info.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ function read (opts) {
2121
function readOTP (msg, otp, isRetry) {
2222
if (!msg) {
2323
msg = [
24-
'There was an error while trying authentication due to OTP (One-Time-Password).',
25-
'The One-Time-Password is generated via applications like Authy or',
26-
'Google Authenticator, for more information see:',
24+
'This command requires a one-time password (OTP) from your authenticator app.',
25+
'Enter one below. You can also pass one on the command line by appending --otp=123456.',
26+
'For more information, see:',
2727
'https://docs.npmjs.com/getting-started/using-two-factor-authentication',
2828
'Enter OTP: '
2929
].join('\n')

0 commit comments

Comments
 (0)
Please sign in to comment.