diff options
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 |