Skip to content

Commit

Permalink
not having an auth token is not an error on every single request
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Apr 16, 2021
1 parent f3a8bdb commit 8a7e326
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions libraries/wp-api-jwt-auth/public/class-jwt-auth-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ public function validate_token($output = true)
}

if (!$auth) {
return new WP_Error(
'jwt_auth_no_auth_header',
'Authorization header not found.',
array(
'status' => 403,
)
);
//not having an auth token is not an error on every single request
// return new WP_Error(
// 'jwt_auth_no_auth_header',
// 'Authorization header not found.',
// array(
// 'status' => 403,
// )
// );
}

/*
Expand Down

0 comments on commit 8a7e326

Please sign in to comment.