ash_authentication_phoenix/dev/dev_web/auth_overrides.ex
James Harton bb241ad95c
feat(Overrides): Move overrides from application environment to the sign_in_route macro. (#36)
This causes two small changes in behaviour:

  1. If you are currently customising the default components you can remove the configuration from your `config.exs` and instead move it to your router.  This allows you to have multiple sign-in routes with different "themes" should that be necessary.
  2. If you are using the components directly you need to pass the `overrides` array into each component.
2022-12-15 14:52:11 +13:00

9 lines
259 B
Elixir

defmodule DevWeb.AuthOverrides do
@moduledoc false
use AshAuthentication.Phoenix.Overrides
alias AshAuthentication.Phoenix.Components
override Components.Banner do
set :image_url, "https://media.giphy.com/media/g7GKcSzwQfugw/giphy.gif"
end
end