Sha256: 8997aef39a8fe80d810654668c6e794c77413a7f85ccdbfec90c19e1983237cd

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 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

6 entries across 6 versions & 1 rubygems

Version Path
devise_jwt_auth-0.1.5 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.4 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.3 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.2 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.1 test/dummy/app/controllers/custom/refresh_token_controller.rb
devise_jwt_auth-0.1.0 test/dummy/app/controllers/custom/refresh_token_controller.rb