update 2fa required for create and delete tokens (#25)

Monish C Mohan committed Aug 29, 2022 at 23:45 UTC 376d76866896dd51cc63fe7832e68d566a407cbc
1 file changed +8 -7
content/getting-started/setting-up-your-npm-user-account/about-two-factor-authentication.mdx
+8 -7
@@ -54,13 +54,14 @@ By default, 2FA is enabled for authorization and writes. We will request a secon
54
55 If you enable 2FA for authorization only. We will request a second form of authentication only for certain authorized actions.
56
57 -| Action | CLI command |
58 -| :------------------------------------------------ | :--------------------------------- |
59 -| Log in to npm | `npm login` |
60 -| Change profile settings (including your password) | `npm profile set` |
61 -| Change 2FA modes for your user account | `npm profile enable-2fa auth-only` |
62 -| Disable 2FA for your user account | `npm profile disable-2fa` |
63 -
57 +| Action | CLI command |
58 +| :------------------------------------------------ | :------------------------------------------------ |
59 +| Log in to npm | [`npm login`][login] |
60 +| Change profile settings (including your password) | [`npm profile set`][profile-set] |
61 +| Change 2FA modes for your user account | [`npm profile enable-2fa auth-only`][2fa-enable] |
62 +| Disable 2FA for your user account | [`npm profile disable-2fa`][2fa-disable] |
63 +| Create tokens | [`npm token create`][token-create] |
64 +| Revoke tokens | [`npm token revoke`][token-revoke] |
65
66 [login]: https://docs.npmjs.com/cli/adduser
67 [profile-set]: https://docs.npmjs.com/cli/profile