Phoenix 1.18 Ash authentication error
I'm seeing the following error when I try to access
But
Any ideas where I could have made a mistake?
Versions:
Phoenix: 1.8.0-rc.3
Ash: 3.5.15
Ash authentication: 4.9.0
Ash authentication phoenix: 2.7.0
/sign-in/sign-in or /register/register on a new application I'm playing with.[error] ** (RuntimeError) Cannot set assign `current_user` before default `AshAuthentication.Phoenix.LiveSession.on_mount/4` has run.
(ash_authentication_phoenix 2.7.0) lib/ash_authentication_phoenix/live_session.ex:163: anonymous fn/5 in AshAuthentication.Phoenix.LiveSession.on_mount/4
(elixir 1.18.3) lib/enum.ex:4515: anonymous fn/3 in Enum.reduce/3
(elixir 1.18.3) lib/stream.ex:1761: anonymous fn/3 in Enumerable.Stream.reduce/3
(elixir 1.18.3) lib/enum.ex:4968: Enumerable.List.reduce/3
(elixir 1.18.3) lib/stream.ex:1773: Enumerable.Stream.do_each/4
(elixir 1.18.3) lib/enum.ex:4515: Enum.reduce/3
(ash_authentication_phoenix 2.7.0) lib/ash_authentication_phoenix/live_session.ex:159: AshAuthentication.Phoenix.LiveSession.on_mount/4
(phoenix_live_view 1.0.17) lib/phoenix_live_view/lifecycle.ex:158: anonymous fn/4 in Phoenix.LiveView.Lifecycle.mount/3
(phoenix_live_view 1.0.17) lib/phoenix_live_view/lifecycle.ex:237: Phoenix.LiveView.Lifecycle.reduce_socket/3
(phoenix_live_view 1.0.17) lib/phoenix_live_view/utils.ex:346: anonymous fn/6 in Phoenix.LiveView.Utils.maybe_call_live_view_mount!/5[error] ** (RuntimeError) Cannot set assign `current_user` before default `AshAuthentication.Phoenix.LiveSession.on_mount/4` has run.
(ash_authentication_phoenix 2.7.0) lib/ash_authentication_phoenix/live_session.ex:163: anonymous fn/5 in AshAuthentication.Phoenix.LiveSession.on_mount/4
(elixir 1.18.3) lib/enum.ex:4515: anonymous fn/3 in Enum.reduce/3
(elixir 1.18.3) lib/stream.ex:1761: anonymous fn/3 in Enumerable.Stream.reduce/3
(elixir 1.18.3) lib/enum.ex:4968: Enumerable.List.reduce/3
(elixir 1.18.3) lib/stream.ex:1773: Enumerable.Stream.do_each/4
(elixir 1.18.3) lib/enum.ex:4515: Enum.reduce/3
(ash_authentication_phoenix 2.7.0) lib/ash_authentication_phoenix/live_session.ex:159: AshAuthentication.Phoenix.LiveSession.on_mount/4
(phoenix_live_view 1.0.17) lib/phoenix_live_view/lifecycle.ex:158: anonymous fn/4 in Phoenix.LiveView.Lifecycle.mount/3
(phoenix_live_view 1.0.17) lib/phoenix_live_view/lifecycle.ex:237: Phoenix.LiveView.Lifecycle.reduce_socket/3
(phoenix_live_view 1.0.17) lib/phoenix_live_view/utils.ex:346: anonymous fn/6 in Phoenix.LiveView.Utils.maybe_call_live_view_mount!/5But
/auth/user/magic_link/auth/user/magic_link loads just fine.Any ideas where I could have made a mistake?
Versions:
Phoenix: 1.8.0-rc.3
Ash: 3.5.15
Ash authentication: 4.9.0
Ash authentication phoenix: 2.7.0
