Elixir /Phoenix — Lets code authentication. Todo application part 3.
Stephan Bakkelund Valois
566

Adding this function to Todo.SessionController fixes sign out:

def delete(conn, _params) do
 Guardian.Plug.sign_out(conn)
 |> put_flash(:info, “Logged out successfully.”)
 |> redirect(to: “/”)
end

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.