Commit 77b54d1

mo khan <mo@mokhan.ca>
2016-12-04 21:03:08
rescue all errors.
1 parent 514540a
Changed files (1)
app
controllers
app/controllers/api/controller.rb
@@ -21,7 +21,7 @@ class Api::Controller < ActionController::Base
   def authenticate!
     return if current_user.present?
     return render json: { errors: ['Not Authenticated'] }, status: :unauthorized
-  rescue JWT::VerificationError, JWT::DecodeError
+  rescue
     return render json: { errors: ['Not Authenticated'] }, status: :unauthorized
   end