Multitenancy and different Liveviews
So this might not be directly related to AshAuthentication, but somebody could help me figure out what's going.
I'm still super new to Elixir and Phoenix so bear with me haha
Continuing from the discussion above with multitenancy
I have a live_view being rendered normally from the router, but this one also has a child live_view rendered with live_render like so:
When I log in, I automatically gets logged out.
When I inspect the socket and session of the messaging live_view, on the second render, there aren't any users or tenant.
In messaging.ex, I have the following:
on_mount {MyAppWeb.UserAuth, :current_user}
which points to the following:
Is there anything I'm missing?
If I comment out the multitenancy part out, I don't encounter the isssue, same thing if I comment out the messaging live view
I'm still super new to Elixir and Phoenix so bear with me haha
Continuing from the discussion above with multitenancy
I have a live_view being rendered normally from the router, but this one also has a child live_view rendered with live_render like so:
When I log in, I automatically gets logged out.
When I inspect the socket and session of the messaging live_view, on the second render, there aren't any users or tenant.
In messaging.ex, I have the following:
on_mount {MyAppWeb.UserAuth, :current_user}
which points to the following:
Is there anything I'm missing?
If I comment out the multitenancy part out, I don't encounter the isssue, same thing if I comment out the messaging live view
