Class: Devise::JWT::SessionsController
- Inherits:
-
SessionsController
- Object
- SessionsController
- Devise::JWT::SessionsController
- Defined in:
- app/controllers/devise/jwt/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#new ⇒ Object
6 7 8 |
# File 'app/controllers/devise/jwt/sessions_controller.rb', line 6 def new respond_to_removed_action end |