Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

docs: Fix sample code to avoid reading from `undefined` in `didAuthError` (#3723)

Changed files
+1 -1
docs
+1 -1
docs/advanced/authentication.md
···
return {
// ...
didAuthError(error, _operation) {
-
return error.response.status === 401;
+
return error.response?.status === 401;
},
};
});