Skip to content

Commit

Permalink
Response may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld authored Dec 19, 2024
1 parent 25d114d commit dfd53e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ authExchange(async utils => {
return {
// ...
didAuthError(error, _operation) {
return error.response.status === 401;
return error.response?.status === 401;
},
};
});
Expand Down

0 comments on commit dfd53e6

Please sign in to comment.