Use Pow with Phoenix LiveView (add LiveComponent to session template)

As mentioned in the title, I’m trying to use Pow with Phoenix Live View.

It’s been a little over a year now that I’ve been developing in Elixir and I’ve never used Phoenix before now so I’m a bit lost. To learn how to use the framework, I plan to make an administration panel but I’m blocking on the login part.

I installed/configured Pow, generated templates with mix pow.phoenix.gen.templates and now, I’m trying to add a LiveComponent inside the generated file templates/pow/session/new.html.leex.
The problem is that the default view of Pow is a “simple” View and not a Live View. I’d like to know how to change it to a Live View so I can add my components to it.

1 Like