# `MishkaCmsCoreWeb.Live.Admin.Components.RecoveryCodes`
[🔗](https://github.com/mishka-group/mishka_cms_core/blob/v0.0.1/lib/mishka_cms_core_web/live/admin/components/recovery_codes.ex#L5)

The signed-in account's recovery codes, a security card on the settings page's Preferences tab
(`SecurityCards`): one-time codes for signing in when its authenticator app is lost. Made with a
current code from the app (`generate_recovery_codes`), shown once and replaced by the next ones;
otherwise the card says how many are left. An account without an authenticator is told to set one
up first. See `MishkaCmsCore.Accounts.SecondFactor`.

    <.live_component module={RecoveryCodes} id="recovery-codes" current_user={@current_user} />

---

*Consult [api-reference.md](api-reference.md) for complete listing*
