Hey everyone! I have a project that adds the current user’s id to the session in a controller like so:
conn |> put_session(:current_user_id, user.id)
however trying to retrieve that in a liveview controller doesn’t seem to be possible since I can’t call
id = get_session(conn, :current_user_id)
conn doesn’t exist. Suggestions for how I can access this state from within the LV controller? Thanks!