Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/class-jwt-auth-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function determine_current_user( $user ) {
$token = $this->validate_token( new WP_REST_Request(), $auth_header );

if ( is_wp_error( $token ) ) {
if ( $token->get_error_code() != 'jwt_auth_no_auth_header' ) {
if ( $token->get_error_code() != 'jwt_auth_no_auth_header' && $token->get_error_code() != 'jwt_auth_invalid_token' ) {
/** If there is an error, store it to show it after see rest_pre_dispatch */
$this->jwt_error = $token;
}
Expand Down