public function findByCredentials(array $credentials, $is_set_token = true, $length = 55) {
            $user = $this->userProvider->findByCredentials($credentials);

            if ($is_set_token) {
                $this->user = $user;
                $this->user->token_api = $this->user->getRandomString($length);
                $this->user->token_expired = strtotime(date('Y-m-d H:i:s', strtotime('+4 hour')));
                $this->user->save();
            }
            return $user;
        }