While we will have to change this in our production setup, if we are just testing Guardian locally, we can generate a secret_key
with this following command:
First ensure that we have added Guardian to the application by adding it to mix.exs
defp deps do
[
# ...
{:guardian, "~> 0.13.0"}
# ...
]
end