diff --git a/documentation/tutorials/getting-started-with-authentication.md b/documentation/tutorials/getting-started-with-authentication.md index 8a96771..d6c8aad 100644 --- a/documentation/tutorials/getting-started-with-authentication.md +++ b/documentation/tutorials/getting-started-with-authentication.md @@ -20,6 +20,17 @@ defp deps() end ``` +And add `ash_authentication` to your `.formatter.exs`: + +```elixir +# .formatter.exs + +[ + # ... + import_deps: [:ash_authentication] +] +``` + ## Choosing your extensions, strategies and add-ons Ash Authentication supports many different features, each configured separately. @@ -154,7 +165,7 @@ defmodule MyApp.Accounts.User do attributes do uuid_primary_key :id attribute :email, :ci_string, allow_nil?: false - attribute :hashed_password, :string, allow_nil?: false + attribute :hashed_password, :string, allow_nil?: false, sensitive?: true end authentication do @@ -172,7 +183,7 @@ defmodule MyApp.Accounts.User do signing_secret fn _, _ -> Application.fetch_env(:my_app, :token_signing_secret) end - do + end end postgres do diff --git a/documentation/tutorials/integrating-ash-authentication-and-phoenix.md b/documentation/tutorials/integrating-ash-authentication-and-phoenix.md index 0839241..a08497a 100644 --- a/documentation/tutorials/integrating-ash-authentication-and-phoenix.md +++ b/documentation/tutorials/integrating-ash-authentication-and-phoenix.md @@ -28,6 +28,17 @@ end Use `mix hex.info ash_authentication_phoenix` to quickly find the latest version. +Add `ash_authentication_phoenix` to your `.formatter.exs`: + +```elixir +# .formatter.exs + +[ + # ... + import_deps: [:ash_authentication_phoenix] +] +``` + ## {{link:ash_authentication_phoenix:module:AshAuthentication.Phoenix.Router}} `ash_authentication_phoenix` includes several helper macros which can generate