From b03198a90a57e720f1f88eb4a981521fcf11ea33 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Thu, 23 Jan 2025 21:01:09 +0100 Subject: [PATCH] docs: Fix sample code to avoid reading from `undefined` in `didAuthError` (#3723) --- docs/advanced/authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/authentication.md b/docs/advanced/authentication.md index 8044fc6d55..b923002638 100644 --- a/docs/advanced/authentication.md +++ b/docs/advanced/authentication.md @@ -207,7 +207,7 @@ authExchange(async utils => { return { // ... didAuthError(error, _operation) { - return error.response.status === 401; + return error.response?.status === 401; }, }; });