恢复启用 2FA 的账户

如果您的账户启用了双重访问,并且您无法访问您的 2FA 设备,您可以使用以下方法恢复您的账户。

遗失的第二重设备

如果您遗失了提供第二重身份验证的设备,您可以使用您 启用 2FA 时生成的恢复码访问您的账户。

在网站上使用恢复代码

  1. 找到您保存的生成的恢复代码。

  2. 使用您的用户账户 登录 到 npm。

  3. 从下一个屏幕单击 "Use recovery code"

    K/pHtPqSTFeFaQP04Hse8ApO0cPWA7Lnqj2KB7wGHinYZrxosa0hn2yTILr96Gl+H7rQy6PCPvbMsHEtRy1T+oY2iYLeE/bP9BNqdXnSrLc=

  4. x4IIOwr4xfLTqhyWk70zQLCKaJtHpigsapNJ1jV+wC6gaMd7GrBpuqv5qKu0UGKZuE3pwpYD29PlU9PX70rTtHc4cYRckT10oafrJ6VS+gk=

  5. 5Y+HsrFK0zetAI5rRA1b6sWHgVMEvP3Y6J/pvfCeJ9w=

  6. b5sY4RZgm3ZhxVH8aSMGrnO7+xtzAGDW02kc/tqx9uVkmtFYgNIRrWSx+fLEbsvZk+B/6aXb4kaEEiOL6aUOVv8Vxo6hnUyaLmPO3SSnBGull64rbtGyLsaYELJcE9E8P0HrDhyu4XBlr/M5wBFK5g==

从命令行使用恢复代码

  1. hAawdyRW9WFoirlyPrmm3H6LbT+5oLYG/3KVqAZaoXCI8jPRJ6NIopC/ZoY2cwbf+WVDv4YMMwgZ06uhf7FAFg==

  2. XH1C306MYIfEqkPOPvjJjPvDNWlTEgUAumvhx6Km8sDIfuggYsA/dPuFrkGCQ5nMqIye0bizRGe/apLwuSfp3+zFlbPLSq6glIsN2qFJXoJoucuSXNTUvV1TJ3mPHl6uzXr3IqJoZY3pT+6sNgWbM/muyr1gqWNrmY9yoXuMzPI=

  3. 2JKBlgOCxpCJzHgqCXGBbpwyPzMgNe15Gp1QA4DhrQLcJ5HmDr23FHg23vZIlAOywjTqrnkaI7DGZrq2WPeo4Q==

    uzuKCA75Th1Nx6TdY3L5AunZiNTx1uXGPMqtvHp2twk=

  4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