         conn
         |> put_flash(:info, "Signed in with #{developer.email}")
         |> redirect(to: "/")
+
       {:error, email} when is_binary(email) ->
         conn
         |> put_flash(:info, "#{email} is not a valid email address")

        }

        Developer.find_or_create(Repo, attrs)
      _ ->
        {:error, email}
    end

defmodule TilexWeb.AuthController do
  use TilexWeb, :controller
  plug(Ueberauth)

  alias Guardian.Plug
  alias Tilex.{Developer, Repo}
