Class: Devise::Api::ResourceOwnerService::SignIn
- Inherits:
-
BaseService
- Object
- BaseService
- Devise::Api::ResourceOwnerService::SignIn
- Defined in:
- app/services/devise/api/resource_owner_service/sign_in.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/services/devise/api/resource_owner_service/sign_in.rb', line 10 def call resource_owner = yield call_authenticate_service devise_api_token = yield call_create_devise_api_token_service(resource_owner) resource_owner.reset_failed_attempts! if resource_owner.class.supported_devise_modules.lockable? Success(devise_api_token) end |