From 2711edb16752764add311aa3daf02bc93dcd35d9 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 26 Feb 2026 08:51:50 -0500 Subject: [PATCH] remove omniauth also from the production check --- config/initializers/devise.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index c26bdf09..705874c8 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -248,19 +248,19 @@ Devise.setup do |config| # Add a new OmniAuth provider. Check the wiki for more information on setting # up on your models and hooks. # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' - if Rails.env.production? - # config.omniauth :facebook, "505160086210072", "fcc474a3fb13c6bcc0f7c83a92ad1b17", - # scope: 'email,user_birthday,publish_actions' - config.omniauth :facebook, "653729178057509", "d4cea86f70803f1b75ed03c506a4d78e", - scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location', - provider_ignores_state: true - config.omniauth :instagram, "cd7bdfbee825499b94fb3783d1bc143b", "6b4f9ecf251c462993a696eebc0189be" - else - # config.omniauth :facebook, "168928633304849", "22bc53e1a390c1e62d004195c55fe336", - # scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location', - # provider_ignores_state: true - # config.omniauth :instagram, "81c78b969a7046d6b6b5b5fe3f30929c", "3697c16762ad4f1ca088e829efbaddde" - end + # if Rails.env.production? + # # config.omniauth :facebook, "505160086210072", "fcc474a3fb13c6bcc0f7c83a92ad1b17", + # # scope: 'email,user_birthday,publish_actions' + # config.omniauth :facebook, "653729178057509", "d4cea86f70803f1b75ed03c506a4d78e", + # scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location', + # provider_ignores_state: true + # config.omniauth :instagram, "cd7bdfbee825499b94fb3783d1bc143b", "6b4f9ecf251c462993a696eebc0189be" + # else + # config.omniauth :facebook, "168928633304849", "22bc53e1a390c1e62d004195c55fe336", + # scope: 'email,user_birthday,user_gender,user_hometown,user_link,user_location', + # provider_ignores_state: true + # config.omniauth :instagram, "81c78b969a7046d6b6b5b5fe3f30929c", "3697c16762ad4f1ca088e829efbaddde" + # end # ==> Warden configuration # If you want to use other strategies, that are not supported by Devise, or