AshAuthentication.Strategy.Otp.Plug (ash_authentication v5.0.0-rc.6)

Copy Markdown View Source

Plugs for the OTP strategy.

Handles request and sign-in phases.

Summary

Functions

Handle a request for an OTP code.

Sign in via OTP code.

Functions

request(conn, strategy)

Handle a request for an OTP code.

Retrieves form parameters from nested within the subject name, eg:

%{
  "user" => %{
    "email" => "marty@mcfly.me"
  }
}

sign_in(conn, strategy)

Sign in via OTP code.