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)

authored by

Gert Hengeveld and committed by
GitHub
b03198a9 0f29d072

+1 -1
+1 -1
docs/advanced/authentication.md
··· 207 207 return { 208 208 // ... 209 209 didAuthError(error, _operation) { 210 - return error.response.status === 401; 210 + return error.response?.status === 401; 211 211 }, 212 212 }; 213 213 });