private function sendArray($refresh, array $errors = [], $enterSecureToken = false, $message = null)
    {
        Yii::$app->response->format = Response::FORMAT_JSON;
        
        return [
            'refresh' => $refresh,
            'message' => $message,
            'errors' => $errors,
            'enterSecureToken' => $enterSecureToken,
            'time' => time(),
        ];
    }