update docs for package invitation flow change

Monish C Mohan committed Apr 12, 2022 at 15:10 UTC e44d6bbc96f80a63bd7668dc86caf4471ba7525f
2 files changed +11 -1
content/packages-and-modules/updating-and-managing-your-published-packages/adding-collaborators-to-private-packages-owned-by-a-user-account.mdx
+4
@@ -10,6 +10,8 @@ As an npm user with a paid user account, you can another npm user with a paid ac
10
11 </Note>
12
13 +When you add a member to your package, they are sent an email inviting them to the package. The new member has to accept the invitation get access to the package.
14 +
15 ## Granting access to a private user package on the web
16
17 1. On the [npm website][npmjs-com], go to the package to which you want to add a collaborator: `https://www.npmjs.com/package/<your-package-name>`
@@ -25,6 +27,8 @@ To add a collaborator to a package on the command line, run the following comman
27 npm owner add <user> <your-package-name>
28 ```
29
30 +
31 +
32 ## Granting access to private organization packages
33
34 To grant an npm user access to private organization packages, you must have an organization owner add them to your organization, then add them to a team that has access to the private package. For more information, see "[Adding members to your organization][add-org-members]".
content/packages-and-modules/updating-and-managing-your-published-packages/transferring-a-package-from-a-user-account-to-another-user-account.mdx
+7 -1
@@ -31,10 +31,13 @@ To transfer a package you own or maintain to another user, follow these steps:
31
32 ## Transferring a package from a user account to another user account on the command line
33
34 -To transfer a package to another npm user using the CLI, run the [`npm owner add`][npm-owner] and `rm` commands in order, replacing `<their-username>` with the other user's npm username, `<your-username>` with your npm username, and `<package-name>` with the package you want to transfer:
34 +To transfer a package to another npm user using the CLI, run the `npm owner add` command replacing `<their-username>` with the other user's npm username. An email invitation is sent to the other user. After the user has accepted the invitation, run the `npm owner rm` command replacing `<your-username>` with your npm username:
35
36 ```
37 npm owner add <their-username> <package-name>
38 +
39 +# new maintainer accepts invitation
40 +
41 npm owner rm <your-username> <package-name>
42 ```
43
@@ -42,6 +45,9 @@ If you have two-factor authentication enabled for writes, add a one-time passwor
45
46 ```
47 npm owner add <their-username> <package-name> --otp=123456
48 +
49 +# new maintainer accepts invitation
50 +
51 npm owner rm <your-username> <package-name> --otp=123456
52 ```
53