Skip to content

Commit

Permalink
docs: mention --otp flag when prompting for OTP (#60)
Browse files Browse the repository at this point in the history
PR-URL: #60
Credit: @bakkot
Reviewed-By: @zkat
  • Loading branch information
bakkot authored and zkat committed Aug 29, 2018
1 parent 59e5056 commit b1a8729
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/read-user-info.js
Expand Up @@ -21,9 +21,9 @@ function read (opts) {
function readOTP (msg, otp, isRetry) {
if (!msg) {
msg = [
'There was an error while trying authentication due to OTP (One-Time-Password).',
'The One-Time-Password is generated via applications like Authy or',
'Google Authenticator, for more information see:',
'This command requires a one-time password (OTP) from your authenticator app.',
'Enter one below. You can also pass one on the command line by appending --otp=123456.',
'For more information, see:',
'https://docs.npmjs.com/getting-started/using-two-factor-authentication',
'Enter OTP: '
].join('\n')
Expand Down

0 comments on commit b1a8729

Please sign in to comment.