mix ash_authentication.add_strategy.recovery_code (ash_authentication v5.0.0-rc.4)

Copy Markdown View Source

Adds the recovery code authentication strategy

Creates a recovery code resource and adds the recovery code strategy to the user resource. Recovery codes are one-time backup codes that allow users to authenticate when their primary 2FA method (e.g. TOTP) is unavailable.

Example

mix ash_authentication.add_strategy recovery_code

Options

  • --user, -u - The user resource. Defaults to YourApp.Accounts.User

Summary

Functions

igniter(igniter)

Callback implementation for Igniter.Mix.Task.igniter/1.