diff --git a/class-auth.php b/class-auth.php index 420e09d..7022021 100644 --- a/class-auth.php +++ b/class-auth.php @@ -183,7 +183,7 @@ public function get_token( WP_REST_Request $request ) { 'success' => false, 'statusCode' => 401, 'code' => $error_code, - 'message' => strip_tags( $user->get_error_message( $error_code ) ), + 'message' => strip_tags('Authentication failed: '.$error_code), 'data' => array(), ), 401