From 5162f9a9dc5c45d33b95f1de553877850f3552f9 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 12 Nov 2023 12:48:09 +0200 Subject: [PATCH] remove redundant jwt rescue --- lib/auth_with_token_strategy.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/auth_with_token_strategy.rb b/lib/auth_with_token_strategy.rb index 391928be..2238f073 100644 --- a/lib/auth_with_token_strategy.rb +++ b/lib/auth_with_token_strategy.rb @@ -15,7 +15,5 @@ class AuthWithTokenStrategy < Devise::Strategies::Base else fail!('Invalid token') end - rescue JWT::VerificationError - fail!('Invalid token') end end