Sha256: 41a9114ba5102215d3b42139b235765f178b108e8be1151ceed84c3c5043dccc

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Custom
  class RefreshTokenController < DeviseJwtAuth::RefreshTokenController
    def show
      super do |resource|
        @refresh_token_block_called = true unless resource.nil?
      end
    end

    def refresh_token_block_called?
      @refresh_token_block_called == true
    end

    protected

    def render_refresh_token_success
      render json: { custom: 'foo' }
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
devise_jwt_auth722-0.1.7 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth7-0.1.7 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.4.1 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.4.0 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.3.0 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.2.0 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.7 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.6 test/dummy/app/controllers/custom/refresh_token_controller.rb