Christoph
Christoph
AEAsh Elixir
Created by Christoph on 3/1/2023 in #support
Customizing AshAuthentication.Phoenix
Just saw
defmacro sign_in_route(opts \\ []) do
{path, opts} = Keyword.pop(opts, :path, "/sign-in")
{live_view, opts} = Keyword.pop(opts, :live_view, AshAuthentication.Phoenix.SignInLive)
{as, opts} = Keyword.pop(opts, :as, :auth)
{otp_app, opts} = Keyword.pop(opts, :otp_app)
{layout, opts} = Keyword.pop(opts, :layout)
{on_mount, opts} = Keyword.pop(opts, :on_mount)
defmacro sign_in_route(opts \\ []) do
{path, opts} = Keyword.pop(opts, :path, "/sign-in")
{live_view, opts} = Keyword.pop(opts, :live_view, AshAuthentication.Phoenix.SignInLive)
{as, opts} = Keyword.pop(opts, :as, :auth)
{otp_app, opts} = Keyword.pop(opts, :otp_app)
{layout, opts} = Keyword.pop(opts, :layout)
{on_mount, opts} = Keyword.pop(opts, :on_mount)
Which seems that I can provide my own live_view component
11 replies
AEAsh Elixir
Created by Christoph on 3/1/2023 in #support
Customizing AshAuthentication.Phoenix
Alright, I will check the code to get a better understanding here.
11 replies
AEAsh Elixir
Created by Christoph on 3/1/2023 in #support
Customizing AshAuthentication.Phoenix
Thanks for the quick reply. So, how would I build an own sign in page then? Could I solely require AshAuthentication then and do not need anything from AshAuthentication.Phoenix?
11 replies