Devise.setup do |config|

  config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'

  require 'devise/orm/active_record'

  config.case_insensitive_keys = [:email]

  config.strip_whitespace_keys = [:email]

  config.skip_session_storage = [:http_auth]

  config.stretches = Rails.env.test? ? 1 : 11

  config.reconfirmable = true

  config.expire_all_remember_me_on_sign_out = true

  config.password_length = 6..128

  config.email_regexp = /\A[^@\s]+@[^@\s]+\z/

  config.reset_password_within = 6.hours

  config.sign_out_via = [:delete, :get]

  config.omniauth :facebook, "2429624190692901", "03da24c1517b0bfa4acc70852f61fb60",
                  callback_url: "http://localhost:3000/users/auth/facebook/callback",
                  scope: 'public_profile,email',
                  info_fields: 'email,first_name,last_name,gender,birthday,location,picture',
                  client_options: {
                    site: 'https://graph.facebook.com/v2.11',
                    authorize_url: "https://www.facebook.com/v2.11/dialog/oauth"
                }

  config.omniauth :google_oauth2, "444952886435-8s76oeuc53otc8q84jork9mq4php7e7t.apps.googleusercontent.com",
                  "vfJkP71fOkfDKVYa3RgXR3lW", {}            
end
