HaAuth.LiveAuth (ha_auth v0.1.0)

Copy Markdown View Source

on_mount for LiveViews: live_session :app, on_mount: {HaAuth.LiveAuth, :require_user} assigns :current_user or sends the browser to /login.

Summary

Functions

on_mount(atom, params, session, socket)