remove redundant jwt rescue
This commit is contained in:
@@ -15,7 +15,5 @@ class AuthWithTokenStrategy < Devise::Strategies::Base
|
|||||||
else
|
else
|
||||||
fail!('Invalid token')
|
fail!('Invalid token')
|
||||||
end
|
end
|
||||||
rescue JWT::VerificationError
|
|
||||||
fail!('Invalid token')
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user