View Source Plausible.Auth.TOTP.RecoveryCode (Plausible v0.0.1)
Schema for TOTP recovery codes.
Summary
Functions
Generates count
unique recovery codes, each alphanumeric
and 10 characters long.
Types
Functions
@spec changeset(Plausible.Auth.User.t(), String.t()) :: Ecto.Changeset.t()
@spec changeset_to_map(Ecto.Changeset.t(), NaiveDateTime.t()) :: map()
@spec generate_codes(non_neg_integer()) :: [String.t()]
Generates count
unique recovery codes, each alphanumeric
and 10 characters long.