With latest phoenix 1.6 and phx.gen.auth, and with live views 0.17.4
in the root template (the one common and preceeding live or app)
@conn is available even for a live route
@conn.assigns.current_user has been set by the fetch_current_user plug and is always available
but @current_user does not exist
how that ?
also inside the live route @current_user is set again with an on mount callback
Accounts.get_user_by_session_token(session[“user_token”]),
is it possible to access if from @conn where it was already fetched earlier by the plug, with the same function ?