Class: DeviseJwtAuth::RefreshTokenController

Inherits:
ApplicationController show all
Defined in:
app/controllers/devise_jwt_auth/refresh_token_controller.rb

Overview

Controller that handles sending refresh tokens.

Instance Method Summary collapse

Methods inherited from ApplicationController

#resource_errors

Instance Method Details

#showObject



8
9
10
11
12
13
14
15
# File 'app/controllers/devise_jwt_auth/refresh_token_controller.rb', line 8

def show
  if @resource
    yield @resource if block_given?
    render_refresh_token_success
  else
    render_refresh_token_error
  end
end