diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-10 20:12:55 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-10 20:12:55 -0600 |
commit | 5faf9807968ce9f7f548474afdc31029e57103dc (patch) | |
tree | e0c2fc55cfd9908e503897304beed8c718921f2c /app/controllers/authenticated_controller.rb | |
parent | 8f04e87b466e79fa2086d69d9c49f5af89b68cb9 (diff) |
Añade método update al controlador de companies
Diffstat (limited to 'app/controllers/authenticated_controller.rb')
-rw-r--r-- | app/controllers/authenticated_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |