Skip to content

Commit 6ea2cd7

Browse files
authoredFeb 7, 2023
docs: update references to OTP to be accurate (#6134)
1 parent bdf079d commit 6ea2cd7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
 

‎docs/lib/content/commands/npm-access.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ You must have privileges to set the access of a package:
5757
* You have been given read-write privileges for a package, either as a member
5858
of a team or directly as an owner.
5959

60-
If you have two-factor authentication enabled then you'll be prompted to
61-
provide an otp token, or may use the `--otp=...` option to specify it on
60+
If you have two-factor authentication enabled then you'll be prompted to provide a second factor, or may use the `--otp=...` option to specify it on
6261
the command line.
6362

6463
If your account is not paid, then attempts to publish scoped packages will

‎docs/lib/content/commands/npm-dist-tag.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Add, remove, and enumerate distribution tags on a package:
1616
or the [`--tag` config](/using-npm/config#tag) if not specified. If you have
1717
two-factor authentication on auth-and-writes then you’ll need to include a
1818
one-time password on the command line with
19-
`--otp <one-time password>`, or at the OTP prompt.
19+
`--otp <one-time password>`, or go through a second factor flow based on your `authtype`.
2020

2121
* rm: Clear a tag that is no longer in use from the package. If you have
2222
two-factor authentication on auth-and-writes then you’ll need to include
2323
a one-time password on the command line with `--otp <one-time password>`,
24-
or at the OTP prompt.
24+
or go through a second factor flow based on your `authtype`
2525

2626
* ls: Show all of the dist-tags for a package, defaulting to the package in
2727
the current prefix. This is the default action if none is specified.

‎docs/lib/content/commands/npm-owner.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ or you can't. Future versions may contain more fine-grained access levels, but
2424
that is not implemented at this time.
2525

2626
If you have two-factor authentication enabled with `auth-and-writes` (see
27-
[`npm-profile`](/commands/npm-profile)) then you'll need to include an otp
28-
on the command line when changing ownership with `--otp`.
27+
[`npm-profile`](/commands/npm-profile)) then you'll need to go through a second factor
28+
flow when changing ownership or include an otp on the command line with `--otp`.
2929

3030
### Configuration
3131

‎docs/lib/content/commands/npm-team.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ as `@org:newteam` in these commands.
2020

2121
If you have two-factor authentication enabled in `auth-and-writes` mode, then
2222
you can provide a code from your authenticator with `[--otp <otpcode>]`.
23-
If you don't include this then you will be prompted.
23+
If you don't include this then you will be taken through a second factor flow based
24+
on your `authtype`.
2425

2526
* create / destroy:
2627
Create a new team, or destroy an existing one. Note: You cannot remove the

0 commit comments

Comments
 (0)
Please sign in to comment.