Class: Devise::JWT::SessionsController

Inherits:
SessionsController
  • Object
show all
Defined in:
app/controllers/devise/jwt/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
# File 'app/controllers/devise/jwt/sessions_controller.rb', line 10

def create
  super do
    token = "Bearer #{request.env['warden-jwt_auth.token']}"
    response.set_header('Authorization', token)
  end
end

#newObject



6
7
8
# File 'app/controllers/devise/jwt/sessions_controller.rb', line 6

def new
  respond_to_removed_action
end