diff --git a/priv/templates/phx.gen.auth/auth.ex b/priv/templates/phx.gen.auth/auth.ex index b32758a75d..472a0214cc 100644 --- a/priv/templates/phx.gen.auth/auth.ex +++ b/priv/templates/phx.gen.auth/auth.ex @@ -60,6 +60,8 @@ defmodule <%= inspect auth_module %> do # end # defp renew_session(conn) do + delete_csrf_token() + conn |> configure_session(renew: true) |> clear_session()