View Source AshAuthentication.Strategy.MagicLink.Plug (ash_authentication v4.3.5)
Plugs for the magic link strategy.
Handles requests and sign-ins.
Summary
Functions
@spec request(Plug.Conn.t(), AshAuthentication.Strategy.MagicLink.t()) :: Plug.Conn.t()
Handle a request for a magic link.
Retrieves form parameters from nested within the subject name, eg:
%{
"user" => %{
"email" => "marty@mcfly.me"
}
}
@spec sign_in(Plug.Conn.t(), AshAuthentication.Strategy.MagicLink.t()) :: Plug.Conn.t()
Sign in via magic link.