content/manuals/security/2fa/recover-hub-account.md
This page explains how to recover your Docker account and manage recovery codes for two-factor authentication.
If you lost your two-factor authentication recovery code but still have access to your Docker Hub account, you can generate a new recovery code.
This generates a new code. Select the visibility icon to view the code. Save your recovery code and store it somewhere safe.
If you lost access to both your two-factor authentication application and your recovery code:
You must enter the primary email address associated with your Docker ID in the Contact Support form for recovery instructions.