Sha256: 9756b23d254976199ee51a027f05186b2064a5aa78ba1d07283fb42828c24f91

Contents?: true

Size: 197 Bytes

Versions: 3

Compression:

Stored size: 197 Bytes

Contents

Spree::Api::BaseController.class_eval do
  prepend Spree::Api::BaseController::JsonWebTokens

  rescue_from JWT::DecodeError do
    render "spree/api/errors/invalid_api_key", status: 401
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_jwt-0.0.2 app/controllers/spree/api/base_controller_decorator.rb
solidus_jwt-0.0.1 app/controllers/spree/api/base_controller_decorator.rb
solidus_jwt-0.0.1.pre app/controllers/spree/api/base_controller_decorator.rb