Appwrite. Consts. AuthenticationFactor
(appwrite v1.0.0)
View Source
Valid MFA authentication factor identifiers.
| Constant | Value |
|---|---|
"email" | |
| phone | "phone" |
| totp | "totp" |
| recovery code | "recoverycode" |
Summary
Functions
Returns true when value is a valid authentication factor, otherwise false.
Guard — returns true when value is a valid authentication factor.
Returns {:ok, value} if valid, or {:error, "Invalid authentication factor"}.
Returns value if valid. Raises ArgumentError otherwise.
Returns all valid authentication factor values.
Functions
Returns true when value is a valid authentication factor, otherwise false.
Guard — returns true when value is a valid authentication factor.
Can be used in function heads:
def handle(v) when Elixir.Appwrite.Consts.AuthenticationFactor.valid_value(v), do: :ok
Returns {:ok, value} if valid, or {:error, "Invalid authentication factor"}.
Returns value if valid. Raises ArgumentError otherwise.
@spec values() :: [String.t()]
Returns all valid authentication factor values.