From 6e73cb8649b321b82d370f0f23f14c662da5534c Mon Sep 17 00:00:00 2001 From: Caillou <6117264+JeSuisUnCaillou@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:52:26 +0100 Subject: [PATCH] Revert "fake user token for staging (because FC credentials have changed for QF API, the test account doesn't work anymore)" This reverts commit 9350e00bb96410e1dca6245bf65a8dbf72817798. --- lib/api_particulier/quotient_familial/v2.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/api_particulier/quotient_familial/v2.rb b/lib/api_particulier/quotient_familial/v2.rb index b0b1e94c..ac673221 100644 --- a/lib/api_particulier/quotient_familial/v2.rb +++ b/lib/api_particulier/quotient_familial/v2.rb @@ -3,7 +3,6 @@ module QuotientFamilial class V2 < Base def initialize(access_token:, siret:) @access_token = access_token - fake_user_token_for_staging @siret = siret end @@ -22,10 +21,6 @@ def query_params def add_authentication_headers(request) request["Authorization"] = "Bearer #{@access_token}" end - - def fake_user_token_for_staging - @access_token = "cnaf_qfv2" unless Rails.env.production? - end end end end