otp: document otp codes via email
Edward Thomson committed
Dec 6, 2021 at 16:50 UTC
77167151ac87e1bcf078231b70ecca3e6af92090
3 files changed
+26
content/getting-started/setting-up-your-npm-user-account/receiving-a-one-time-password-over-email.mdx
new
+26
@@ -0,0 +1,26 @@
1
+---
2
+title: Receiving a one-time password over email
3
+---
4
+import shared from '../../../src/shared.js'
5
+
6
+For your security, npm may require additional verification to allow you to log in to your account. If you do not have [two-factor authentication](configuring-two-factor-authentication) enabled, you may be asked to verify yourself with a one-time password sent to the email address configured for your account.
7
+
8
+## Logging in with a one-time password
9
+
10
+1. <>{shared['user-login'].text}</>
11
+
12
+ <>{shared['user-login'].image}</>
13
+
14
+2. You'll be prompted for a one-time password that was sent to your email.
15
+
16
+ <Screenshot src="/getting-started/setting-up-your-npm-user-account/one-time-password-email.png" alt="Screenshot showing one-time password request" />
17
+
18
+3. Check your email account for an email from npm containing your one-time password (the subject will begin "OTP for logging in to your account").
19
+
20
+ <Screenshot src="/getting-started/setting-up-your-npm-user-account/email-otp-code.png" alt="Screenshot showing OTP code in email" />
21
+
22
+4. Enter the digits from your email in your one-time password field.
23
+
24
+## Enabling two-factor authentication
25
+
26
+To avoid this additional login step, with a one-time password sent to you via e-mail, you can configure [two-factor authentication with a device](/configuring-two-factor-authentication) (2FA) instead.
static/getting-started/setting-up-your-npm-user-account/email-otp-code.png
Binary files /dev/null and b/static/getting-started/setting-up-your-npm-user-account/email-otp-code.png differ
static/getting-started/setting-up-your-npm-user-account/one-time-password-email.png
Binary files /dev/null and b/static/getting-started/setting-up-your-npm-user-account/one-time-password-email.png differ