So, I am starting a new phoenix project, and of course I’m going to implement it all using live views. So I have one question: does phx_gen_auth work well with live views? I know that the generated code does generate only dead views, and I don’t care too much about that, I will probably replace them with live views in the future.
But there is this line that got me thinking: https://github.com/aaronrenner/phx_gen_auth/blob/de9596102bf59a3333d78330a0ab07f8a9ec8f4d/priv/templates/phx.gen.auth/auth.ex#L22
It looks like there is actually a right way to put phx_gen_auth and live views together, but I couldn’t find it on the docs and neither found any tutorial explaining that specifically. Do I have to do something else on my live views? Besides manually setting the user to the socket assigns, and authorization, which I already noticed I have to.