Is it possible to authenticate entirely in LiveView, without Controller?

It looks like PhoenixLiveSession adds a put_session callable on a LiveView socket, though it also adds a pubsub system that this use case doesn’t really require.

And there is an example out there of setting session cookie with hooks.