Skip to content

Commit 4990ea0

Browse files
LiangYingCowlstronaut
authored andcommitted
docs: clarify legacy token creation in npm login and adduser commands
1 parent db8f5da commit 4990ea0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/lib/content/commands/npm-adduser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Create a new user in the specified registry, and save the credentials to
1414
the `.npmrc` file. If no registry is specified, the default registry
1515
will be used (see [`registry`](/using-npm/registry)).
1616

17+
When you run `npm adduser`, the CLI automatically generates a legacy token of publish type. For more information, see [About legacy tokens](/about-access-tokens#about-legacy-tokens).
18+
1719
When using `legacy` for your `auth-type`, the username, password, and
1820
email are read in from prompts.
1921

docs/lib/content/commands/npm-login.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Verify a user in the specified registry, and save the credentials to the
1414
`.npmrc` file. If no registry is specified, the default registry will be
1515
used (see [`config`](/using-npm/config)).
1616

17+
When you run `npm login`, the CLI automatically generates a legacy token of publish type. For more information, see [About legacy tokens](/about-access-tokens#about-legacy-tokens).
18+
1719
When using `legacy` for your `auth-type`, the username and password, are
1820
read in from prompts.
1921

0 commit comments

Comments
 (0)