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