Phx.gen.auth and current_user

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

is it possible to access if from @conn where it was already fetched earlier by the plug, with the same function ?

1 Like

I am running into this same problem. Did you find a solution?

I don’t see the behaviour anymore in 0.17.5