Class: ApiGuardGrape::TokensController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ApiGuardGrape::TokensController
- Defined in:
- app/controllers/api_guard_grape/tokens_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/api_guard_grape/tokens_controller.rb', line 10 def create create_token_and_set_header(current_resource, resource_name) @refresh_token.destroy blacklist_token if ApiGuardGrape.blacklist_token_after_refreshing render_success(message: I18n.t('api_guard_grape.access_token.refreshed')) end |