Skip to content

Commit

Permalink
fixup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sun committed Mar 14, 2022
1 parent 2389036 commit 137932b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion class-auth.php
Expand Up @@ -622,7 +622,10 @@ public function determine_current_user( $user_id ) {

$payload = $this->validate_token( false );

// If $payload is an error response, authentication failed.
// If $payload is an error response, then the client did not send a token,
// or the token is invalid, the client uses a different way to authenticate,
// or the endpoint does not require authentication.
// Let the endpoint do its regular access checks.
if ( $this->is_error_response( $payload ) ) {
return $user_id;
}
Expand Down

0 comments on commit 137932b

Please sign in to comment.