1 ---
2 title: Receiving a one-time password over email
3 ---
4
5 import shared from '~/shared.js'
6
7 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.
8
9 ## Logging in with a one-time password
10
11 1. <>{shared['user-login'].text}</>
12
13 <>{shared['user-login'].image}</>
14
15 2. You'll be prompted for a one-time password that was sent to your email.
16
17 <Screenshot src="/getting-started/setting-up-your-npm-user-account/one-time-password-email.png" alt="Screenshot showing one-time password request" />
18
19 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").
20
21 <Screenshot src="/getting-started/setting-up-your-npm-user-account/email-otp-code.png" alt="Screenshot showing OTP code in email" />
22
23 4. Enter the digits from your email in your one-time password field.
24
25 ## Enabling two-factor authentication
26
27 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.
28
29 ## Unable to access email
30
31 If you are unable to access the email linked to your npm account, you can submit a support ticket to reset this email address.
32
33 1. <>{shared['user-login'].text}</>
34
35 <>{shared['user-login'].image}</>
36
37 2. Under the "Login Verification" form, click **Try recovering your account**.
38
39 3. <>{shared['start-account-recovery'].text}</>
40
41 <>{shared['start-account-recovery'].image}</>
42
43 4. <>{shared['support-ticket-form'].text}</>
44
45 - <>{shared['enter-email-address'].text}</>
46 - In the **How can we help?** section, select **Reset my email**.
47 - <>{shared['support-ticket-other'].text}</><>{shared['connect-to-accounts'].text}</>
48
49 5. <>{shared['submit-support-ticket'].text}</>