Skip to content

Commit 88e9a6e

Browse files
committed
Modify 2FA docs based on review
1 parent a15fe0b commit 88e9a6e

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

content/integrations/integrating-npm-with-external-services/using-private-packages-in-a-ci-cd-workflow.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If trusted publishing is not available for your CI/CD provider, you can create a
5050
- Set short expiration dates for tokens with bypass 2FA enabled
5151
- Consider using IP address restrictions to limit where the token can be used
5252
- Regularly audit and rotate tokens with bypass 2FA capabilities
53-
- **Prefer trusted publishing over bypass 2FA tokens when possible**
53+
- Use trusted publishing instead of bypass 2FA tokens whenever possible
5454

5555
</Note>
5656

content/packages-and-modules/securing-your-code/requiring-2fa-for-package-publishing-and-settings-modification.mdx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ You may also choose to allow publishing with either two-factor authentication _o
1010

1111
For CI/CD workflows, consider using [trusted publishing](/trusted-publishers), which provides secure, token-free publishing that automatically enforces strong authentication without requiring manual token management.
1212

13+
<Note>
14+
15+
**Important notes about granular access tokens:**
16+
17+
- **When bypass2FA is true**: The token will bypass all 2FA requirements at all times, regardless of account-level or package-level 2FA settings
18+
- **When bypass2FA is false (default)**: The system will check account-level and package-level settings to determine if 2FA is required
19+
- When "disallow tokens" is selected at the package level, granular access tokens cannot be used regardless of their bypass 2FA setting
20+
21+
</Note>
22+
1323
## Configuring two-factor authentication
1424

1525
1. <>{shared['user-login'].text}</>
@@ -36,17 +46,5 @@ For CI/CD workflows, consider using [trusted publishing](/trusted-publishers), w
3646

3747
5. Click **Update Package Settings**.
3848

39-
## Granular access token behavior with 2FA
40-
41-
<Note>
42-
43-
**Important notes about granular access tokens:**
44-
45-
- **When Bypass2FA is true**: The token will bypass all 2FA requirements at all times, regardless of account-level or package-level 2FA settings
46-
- **When Bypass2FA is false (default)**: The system will check account-level and package-level settings to determine if 2FA is required
47-
- When "disallow tokens" is selected at the package level, granular access tokens cannot be used regardless of their bypass 2FA setting
48-
49-
</Note>
50-
5149
[config-2fa]: configuring-two-factor-authentication
5250
[creating-granular-access-token]: creating-and-viewing-access-tokens#creating-granular-access-tokens-on-the-website

0 commit comments

Comments
 (0)