From debf782c70dde00db32f1aca8c9b7f047dc4c964 Mon Sep 17 00:00:00 2001
From: Ahmad Farhat <ahmad.af.farhat@gmail.com>
Date: Fri, 7 Jul 2023 10:41:19 -0400
Subject: [PATCH] Fix issues with recording_ready callback failing (#5317)

---
 app/services/big_blue_button_api.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/services/big_blue_button_api.rb b/app/services/big_blue_button_api.rb
index 76a2cbe9..89a30384 100644
--- a/app/services/big_blue_button_api.rb
+++ b/app/services/big_blue_button_api.rb
@@ -95,7 +95,7 @@ class BigBlueButtonApi
 
   # Decodes the JWT using the BBB secret as key (Used in Recording Ready Callback)
   def decode_jwt(token)
-    JWT.decode token, Rails.configuration.bigbluebutton_secret, true, { algorithm: 'HS256' }
+    JWT.decode token, @secret, true, { algorithm: 'HS256' }
   end
 
   private
-- 
GitLab