Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: mention --otp flag when prompting for OTP #60

Merged
merged 1 commit into from
Aug 29, 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
6 changes: 3 additions & 3 deletions lib/utils/read-user-info.js
Original file line number Diff line number Diff line change
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