remove omniauth also from the production check

This commit is contained in:
2026-02-26 08:51:50 -05:00
parent e624ec2d0b
commit 2711edb167
+13 -13
View File
@@ -248,19 +248,19 @@ Devise.setup do |config|
# Add a new OmniAuth provider. Check the wiki for more information on setting # Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks. # up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
if Rails.env.production? # if Rails.env.production?
# config.omniauth :facebook, "505160086210072", "fcc474a3fb13c6bcc0f7c83a92ad1b17", # # config.omniauth :facebook, "505160086210072", "fcc474a3fb13c6bcc0f7c83a92ad1b17",
# scope: 'email,user_birthday,publish_actions' # # scope: 'email,user_birthday,publish_actions'
config.omniauth :facebook, "653729178057509", "d4cea86f70803f1b75ed03c506a4d78e", # config.omniauth :facebook, "653729178057509", "d4cea86f70803f1b75ed03c506a4d78e",
scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location', # scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location',
provider_ignores_state: true # provider_ignores_state: true
config.omniauth :instagram, "cd7bdfbee825499b94fb3783d1bc143b", "6b4f9ecf251c462993a696eebc0189be" # config.omniauth :instagram, "cd7bdfbee825499b94fb3783d1bc143b", "6b4f9ecf251c462993a696eebc0189be"
else # else
# config.omniauth :facebook, "168928633304849", "22bc53e1a390c1e62d004195c55fe336", # config.omniauth :facebook, "168928633304849", "22bc53e1a390c1e62d004195c55fe336",
# scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location', # scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location',
# provider_ignores_state: true # provider_ignores_state: true
# config.omniauth :instagram, "81c78b969a7046d6b6b5b5fe3f30929c", "3697c16762ad4f1ca088e829efbaddde" # config.omniauth :instagram, "81c78b969a7046d6b6b5b5fe3f30929c", "3697c16762ad4f1ca088e829efbaddde"
end # end
# ==> Warden configuration # ==> Warden configuration
# If you want to use other strategies, that are not supported by Devise, or # If you want to use other strategies, that are not supported by Devise, or