双重身份验证
了解如何利用双重身份验证 (2FA) 来保护你的 Expo 账户。
双因素认证在登录 expo.dev、Expo Go 应用和命令行工具时提供了额外的安全层。有了双因素认证后,你在访问账户时除了用户名和密码外,还需要提供一个短时有效的验证码。
🌐 Two-factor authentication provides an extra layer of security when logging in to expo.dev, the Expo Go app, and command line tools. With two-factor authentication enabled, you will need to provide a short-lived code in addition to your username and password to access your account.
启用双重身份验证 (2FA)
🌐 Enable two-factor authentication (2FA)
你可以在你的个人账户设置中启用双重身份验证。
🌐 You can enable two-factor authentication from your personal account settings.
双重身份验证方法
🌐 Two-factor authentication methods
你可以通过身份验证器应用接收 2FA 代码。
🌐 You can receive 2FA codes through an authenticator app.
身份验证器应用
🌐 Authenticator apps
Expo 接受任何支持基于时间的一次性密码 (TOTP) 的验证器应用,包括:
🌐 Expo accepts any authenticator app that supports Time-based One-time Passwords (TOTP) including:
Expo 在设置过程中会提供一个二维码供你用身份验证器应用扫描。应用会提供一个确认码,在 Expo 上输入该确认码即可完成通过身份验证器应用激活双因素认证(2FA)。
🌐 Expo will provide a QR code to scan with your authenticator app during setup. The app will provide a confirmation code to enter on Expo. Enter the code to finish activating 2FA via your authenticator app.
短信
🌐 SMS messages
警告 已弃用: 新增的双因素认证方法已不再支持短信。现有的短信双因素认证方法仍然可以使用,但我们建议切换到身份验证器应用,因为它提供更好的安全性。
提供一个手机号码以通过短信接收短期有效的令牌。通过短信接收的验证码至少有效 10 分钟,因此在此时间窗口内你可能会多次收到相同的验证码。如果你将短信设备设置为默认的双重身份验证(2FA)方式,每当你执行需要 2FA 代码的操作时,系统会自动向你发送验证码。
🌐 Provide a mobile phone number to receive a short-lived token via SMS. Codes received via SMS will be valid for at least 10 minutes, so you may receive the same code multiple times within this window. If you set an SMS device as your default 2FA method, you will be sent a verification code automatically whenever you take an action that requires a 2FA code.
恢复代码
🌐 Recovery codes
当你为账户设置双因素认证时,你会收到一组恢复代码。如果你无法使用身份验证器应用或短信设备,这些代码可以替代一次性密码。请记住,每个恢复代码仅可使用一次。
🌐 When you set up two-factor authentication for your account, you'll receive a set of recovery codes. These codes can be used instead of a one-time password if you lose access to your authenticator app or SMS device. Keep in mind that each recovery code is only valid for one use.
如果你在创建恢复码时选择了下载选项,你可以在名为 expo-recovery-codes.txt 的文件中找到它们。
🌐 If you selected the option to download your recovery codes at the time they were created, you can locate them in a file labeled as expo-recovery-codes.txt.
将你的恢复码保存在安全且易记的地方,以确保只有你可以访问你的账户!
更改你的双重设置
🌐 Change your two-factor settings
你可以从你的个人账户设置修改双重身份验证设置。你可以:
🌐 You can make changes to your two-factor settings from your personal account settings. You can:
- 添加或删除身份验证方法
- 设置你的默认方法
- 重新生成你的恢复代码
- 为你的账户禁用双重身份验证
你需要提供一次性密码才能对 2FA 设置进行任何更改。
🌐 You will need to provide a one-time password to make any changes to your 2FA settings.
恢复你的账户
🌐 Recover your account
恢复代码
🌐 Recovery codes
当你设置账户以使用双因素认证(2FA)时,Expo 会为你提供一份备用恢复码列表。如果你丢失了设备,可以使用其中的恢复码来替代一次性密码。每个恢复码仅能使用一次。你可以在个人账户设置中重新生成恢复码,这将使现有的所有恢复码失效。
🌐 When you set up your account to use 2FA, Expo provides you with a list of recovery codes. In the event you lose your device(s), a recovery code may be used in place of a one-time password. Each of these codes may only be used once. You may regenerate your recovery codes, which will invalidate any existing codes, from your personal account settings.
二次 2FA 方法
🌐 Secondary 2FA methods
通过设置与不同物理设备关联的多种身份验证方法,你可以确保在设备重置或丢失时你不会失去对账户的访问权限。
🌐 By setting up multiple authentication methods associated with different physical devices, you can ensure you will not lose access to your account in the event a device is reset or lost.
手动恢复
🌐 Manual recovery
如果你无法通过提供的任何方法访问你的账户,你可以使用与你的账户关联的电子邮件联系 Expo 支持。不幸的是,在这种情况下,我们无法保证能够恢复你对账户的访问权限。
🌐 If you cannot access your account through any of the supplied methods, you may email Expo support from the email associated with your account. Unfortunately, we cannot guarantee we will be able to restore your access to your account in this scenario.