Use `mix phx.gen.auth` for this capability with LiveView option. Be sure to enable API for usage by other nodes in the distributed architecture.