mix ash_authentication.add_strategy.recovery_code
(ash_authentication v5.0.0-rc.6)
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 toYourApp.Accounts.User
Summary
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.