From 5faf9807968ce9f7f548474afdc31029e57103dc Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 10 Mar 2023 20:12:55 -0600 Subject: Añade método update al controlador de companies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/authenticated_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/authenticated_controller.rb') diff --git a/app/controllers/authenticated_controller.rb b/app/controllers/authenticated_controller.rb index 7098202..de02cab 100644 --- a/app/controllers/authenticated_controller.rb +++ b/app/controllers/authenticated_controller.rb @@ -19,7 +19,7 @@ class AuthenticatedController < ApplicationController def decoded_token @decoded_token ||= JWT.decode(authentication_token, ENV['HMAC_SECRET_KEY'], true, { algorithm: 'HS512' }) - rescue JWT::ExpiredSignature + rescue JWT::ExpiredSignature, JWT::DecodeError @decoded_token = nil end -- cgit v1.2.3