   use AtomStyleTweaks.Web, :router
 
   require Logger
+
+  alias AtomStyleTweaks.SlidingSessionTimeout
 
   pipeline :browser do
     plug :accepts, ["html"]

    plug :protect_from_forgery
    plug :put_secure_browser_headers
    plug :assign_current_user
    plug :authorize
    plug AtomStyleTweaks.SlidingSessionTimeout
  end

  pipeline :api do

    assign(conn, :current_user, user)
  end

  def log_flash(conn, _params) do
    Logger.debug(fn -> "Flash info = #{get_flash(conn, :info)}" end)
    Logger.debug(fn -> "Flash error = #{get_flash(conn, :error)}" end)
