main))->refresh(); if (! is_a($new_api_token, 'WP_Error')) { $this->respondWithError($new_api_token->get_error_message(), $new_api_token->get_error_code()); } $this->respond(['message' => 'Token refreshed successfully']); } }