OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :github, Hound::GITHUB_CLIENT_ID, Hound::GITHUB_CLIENT_SECRET
end

OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  provider(
    :github,
    Hound::GITHUB_CLIENT_ID,
    Hound::GITHUB_CLIENT_SECRET,
    scope: "user:email",
  )
end

Configure OmniAuth to get the GitHub user's email
Configure OmniAuth to get the GitHub user's email

GitHub Apps don't use scopes, but OmniAuth GitHub library still needs
this option, to know to hit the GitHub API to fetch the email for the
user that is logging in.
