I’m playing around with LiveView, and while most things work as expected, I’m a bit puzzled on how to deal with authentication. Guides recommend you set up your data in the mount/2 function on your LiveView. This receives the
socket arguments, but the
session I receive is simply an empty map, and the socket has none of the assigns my conn object has.
To even reach the page where my LiveView is installed, they have to be logged in (with Pow, in my case), so they most certainly have a session, so I’m a little confused why it doesn’t show up here.
I know LiveView is not final yet, but given how most apps have authentication, you’d think it would have some facilities for that. What am I missing?