Plugs for the OTP strategy.
Handles request and sign-in phases.
Summary
Functions
@spec request(Plug.Conn.t(), AshAuthentication.Strategy.Otp.t()) :: Plug.Conn.t()
Handle a request for an OTP code.
Retrieves form parameters from nested within the subject name, eg:
%{
"user" => %{
"email" => "marty@mcfly.me"
}
}
@spec sign_in(Plug.Conn.t(), AshAuthentication.Strategy.Otp.t()) :: Plug.Conn.t()
Sign in via OTP code.