了解如何利用双重身份验证 (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.
¥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.
将你的恢复代码存储在安全且难忘的地方,以确保只有你才能访问你的账户!
¥Store your recovery codes in a secure and memorable place to ensure you, and only you can access your account!
¥Change your two-factor settings
你可以从 个人账户设置 更改双重设置。你可以:
¥You can make changes to your two-factor settings from your personal account settings. You can:
添加或删除身份验证方法
¥add or remove authentication methods
设置你的默认方法
¥set your default method
重新生成你的恢复代码
¥regenerate your recovery codes
为你的账户禁用双重身份验证
¥disable two-factor authentication for your account
你需要提供一次性密码才能对 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.
¥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.