In the readme for phx.gen.auth under Installation, it shows:
def deps do
[
{:phx_gen_auth, "~> 0.6", only: [:dev], runtime: false},
...
]
end
According to the mix deps documentation, the :only opt means
the dependency is made available only in the given environments, useful when declaring dev- or test-only dependencies; by default the dependency will be available in all environments. The value of this option can either be a single environment (like
:dev
) or a list of environments (like[:dev, :test]
)"
Why do we pass this option with phx.gen.auth? If we include phx.gen.auth according to these instructions and use it to create user accounts for the app, will the user authentication system still work after deployment?